Skip to content

Commit

Permalink
define AT_USE_HIPSPARSE_XXX when USE_ROCM is false
Browse files Browse the repository at this point in the history
To prevent compilation errors on non-ROCm platforms.
  • Loading branch information
jeffdaily committed Oct 4, 2023
1 parent 6b97905 commit f15f5b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aten/src/ATen/cuda/CUDASparse.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
#endif

#endif // HIPSPARSE_VERSION >= 200400
#else // USE_ROCM
#define AT_USE_HIPSPARSE_CONST_DESCRIPTORS() 0
#define AT_USE_HIPSPARSE_GENERIC_52_API() 0
#define AT_USE_HIPSPARSE_GENERIC_API() 0
#endif // USE_ROCM

// cuSparse Generic API spsv function was added in CUDA 11.3.0
Expand Down

0 comments on commit f15f5b3

Please sign in to comment.