]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
Fix new CUDA10 compilation errors (#4635)
authorFantasyGmm <redacted>
Tue, 26 Dec 2023 10:38:36 +0000 (18:38 +0800)
committerGitHub <redacted>
Tue, 26 Dec 2023 10:38:36 +0000 (11:38 +0100)
ggml-cuda.cu

index ac3b3c14d53df663dda113f0b40107f6ddb41f33..f32e83ab695b865e1c50802c1802e0807cce8e7c 100644 (file)
 #include <cuda_fp16.h>
 
 #if CUDART_VERSION < 11020
+#define CU_DEVICE_ATTRIBUTE_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED CU_DEVICE_ATTRIBUTE_VIRTUAL_ADDRESS_MANAGEMENT_SUPPORTED
 #define CUBLAS_TF32_TENSOR_OP_MATH CUBLAS_TENSOR_OP_MATH
 #define CUBLAS_COMPUTE_16F CUDA_R_16F
 #define CUBLAS_COMPUTE_32F CUDA_R_32F