We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54ffb05 commit 1096a4fCopy full SHA for 1096a4f
1 file changed
aten/src/ATen/native/sparse/cuda/SparseCUDABlas.cu
@@ -15,9 +15,11 @@
15
// Using these APIs in any other systems will result in compile-time or run-time failures.
16
// Their support will be extended in the next releases.
17
18
-#define IS_SPMM_AVAILABLE() (defined(__CUDACC__) && \
19
- (CUSPARSE_VERSION >= 11000 || \
20
- (!defined(_MSC_VER) && CUSPARSE_VERSION >= 10301)))
+#if defined(__CUDACC__) && (CUSPARSE_VERSION >= 11000 || (!defined(_MSC_VER) && CUSPARSE_VERSION >= 10301))
+#define IS_SPMM_AVAILABLE() 1
+#else
21
+#define IS_SPMM_AVAILABLE() 0
22
+#endif
23
24
#if IS_SPMM_AVAILABLE()
25
#include <library_types.h>
0 commit comments