Files
leleka/scripts/cuda-stubs/cublas_v2.h
T
Pavlo RatushnyiandClaude Sonnet 5.5 2ab3a8ca48 test(cuda): run the stub pass through clang's CUDA frontend (host/device call legality, __shared__ rules, <<<>>>); fix qsa variants block_q4_0 packing, de-duplicate native_head_native.cu
- check-cu.py now defaults to clang -x cuda --cuda-host-only with real qualifiers; --plain keeps the C++-only pass.
- qsa_prompt_attention_variants.cu: block_q4_0 under pack(1) as in kv_q4.hpp (cu_pin refreshed).
- native_head_native.cu: orphan copy had __launch_bounds__ before extern "C" __global__ (never nvcc-built); now the sealed twin's text.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 16:56:45 +02:00

20 lines
669 B
C

// Stub of <cublas_v2.h>: only the handle and status names ggml-cuda/common.cuh mentions.
#pragma once
#include "cuda_stub.h"
#if defined(__CUDA__)
#pragma clang force_cuda_host_device begin
#endif
typedef void* cublasHandle_t;
typedef int cublasStatus_t;
typedef int cublasComputeType_t;
typedef int cudaDataType_t;
enum { CUBLAS_STATUS_SUCCESS = 0 };
#define CUBLAS_TF32_TENSOR_OP_MATH 3
cublasStatus_t cublasCreate(cublasHandle_t*);
cublasStatus_t cublasDestroy(cublasHandle_t);
cublasStatus_t cublasSetStream(cublasHandle_t, cudaStream_t);
cublasStatus_t cublasSetMathMode(cublasHandle_t, int);
#if defined(__CUDA__)
#pragma clang force_cuda_host_device end
#endif