@@ -90,23 +90,33 @@ CUBLAS_BLAS_ROUTINE_EACH(DECLARE_DYNAMIC_LOAD_CUBLAS_WRAP)
90
90
91
91
// APIs available after CUDA 8.0
92
92
#if CUDA_VERSION >= 8000
93
- DECLARE_DYNAMIC_LOAD_CUBLAS_WRAP (cublasGemmEx);
94
- DECLARE_DYNAMIC_LOAD_CUBLAS_WRAP (cublasSgemmStridedBatched);
95
- DECLARE_DYNAMIC_LOAD_CUBLAS_WRAP (cublasDgemmStridedBatched);
96
- DECLARE_DYNAMIC_LOAD_CUBLAS_WRAP (cublasCgemmStridedBatched);
97
- DECLARE_DYNAMIC_LOAD_CUBLAS_WRAP (cublasZgemmStridedBatched);
98
- DECLARE_DYNAMIC_LOAD_CUBLAS_WRAP (cublasHgemmStridedBatched);
93
+ #define CUBLAS_BLAS_ROUTINE_EACH_R2 (__macro ) \
94
+ __macro (cublasGemmEx); \
95
+ __macro (cublasSgemmStridedBatched); \
96
+ __macro (cublasDgemmStridedBatched); \
97
+ __macro (cublasCgemmStridedBatched); \
98
+ __macro (cublasZgemmStridedBatched); \
99
+ __macro (cublasHgemmStridedBatched);
100
+
101
+ CUBLAS_BLAS_ROUTINE_EACH_R2 (DECLARE_DYNAMIC_LOAD_CUBLAS_WRAP)
99
102
#endif
100
103
101
104
// APIs available after CUDA 9.0
102
105
#if CUDA_VERSION >= 9000
103
- DECLARE_DYNAMIC_LOAD_CUBLAS_WRAP (cublasSetMathMode);
104
- DECLARE_DYNAMIC_LOAD_CUBLAS_WRAP (cublasGetMathMode);
106
+ #define CUBLAS_BLAS_ROUTINE_EACH_R3 (__macro ) \
107
+ __macro (cublasSetMathMode); \
108
+ __macro (cublasGetMathMode);
109
+
110
+ CUBLAS_BLAS_ROUTINE_EACH_R3 (DECLARE_DYNAMIC_LOAD_CUBLAS_WRAP)
105
111
#endif
106
112
113
+ // APIs available after CUDA 9.1
107
114
#if CUDA_VERSION >= 9010
108
- DECLARE_DYNAMIC_LOAD_CUBLAS_WRAP (cublasGemmBatchedEx);
109
- DECLARE_DYNAMIC_LOAD_CUBLAS_WRAP (cublasGemmStridedBatchedEx);
115
+ #define CUBLAS_BLAS_ROUTINE_EACH_R4 (__macro ) \
116
+ __macro (cublasGemmBatchedEx); \
117
+ __macro (cublasGemmStridedBatchedEx);
118
+
119
+ CUBLAS_BLAS_ROUTINE_EACH_R4 (DECLARE_DYNAMIC_LOAD_CUBLAS_WRAP)
110
120
#endif
111
121
112
122
#undef DECLARE_DYNAMIC_LOAD_CUBLAS_WRAP
0 commit comments