Skip to content

Commit d8b06c2

Browse files
committed
CUBLAS_TF32_TENSOR_OP_MATH is not a macro
1 parent b7da1ba commit d8b06c2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ggml-cuda.cu

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,14 @@
9191
#include <cuda.h>
9292
#include <cublas_v2.h>
9393
#include <cuda_fp16.h>
94-
// CUDA 10.2 does not have these macro definitions.
95-
#ifndef CUBLAS_TF32_TENSOR_OP_MATH
94+
95+
#if CUDART_VERSION < 11020
9696
#define CUBLAS_TF32_TENSOR_OP_MATH CUBLAS_TENSOR_OP_MATH
9797
#define CUBLAS_COMPUTE_16F CUDA_R_16F
9898
#define CUBLAS_COMPUTE_32F CUDA_R_32F
9999
#define cublasComputeType_t cudaDataType_t
100-
#endif
100+
#endif // CUDART_VERSION < 11020
101+
101102
#endif // defined(GGML_USE_HIPBLAS)
102103

103104
#include "ggml-cuda.h"

0 commit comments

Comments
 (0)