3838#include < cuda_occupancy.h>
3939#include < cuda_runtime.h>
4040
41- #if _CCCL_HAS_INCLUDE (<cusolverDn.h>)
41+ #if __has_include (<cusolverDn.h>)
4242# include < cusolverDn.h>
4343#endif
4444
4545namespace cuda ::experimental::stf
4646{
47- #if _CCCL_HAS_INCLUDE (<cusolverDn.h>)
47+ #if __has_include (<cusolverDn.h>)
4848// Undocumented
4949inline const char * cusolverGetErrorString (const cusolverStatus_t status)
5050{
@@ -113,10 +113,10 @@ public:
113113 {
114114 // All "success" statuses are zero
115115 static_assert (cudaSuccess == 0 && CUDA_SUCCESS == 0
116- #if _CCCL_HAS_INCLUDE (<cublas_v2.h>)
116+ #if __has_include (<cublas_v2.h>)
117117 && CUBLAS_STATUS_SUCCESS == 0
118118#endif
119- #if _CCCL_HAS_INCLUDE (<cusolverDn.h>)
119+ #if __has_include (<cusolverDn.h>)
120120 && CUSOLVER_STATUS_SUCCESS == 0
121121#endif
122122 ,
@@ -131,7 +131,7 @@ public:
131131 int dev = -1 ;
132132 cudaGetDevice (&dev);
133133
134- #if _CCCL_HAS_INCLUDE (<cusolverDn.h>)
134+ #if __has_include (<cusolverDn.h>)
135135 if constexpr (::std::is_same_v<T, cusolverStatus_t>)
136136 {
137137 format (" %s(%u) [device %d] CUSOLVER error in call %s: %s." ,
@@ -142,8 +142,8 @@ public:
142142 cusolverGetErrorString (status));
143143 }
144144 else
145- #endif // _CCCL_HAS_INCLUDE (<cusolverDn.h>)
146- #if _CCCL_HAS_INCLUDE (<cublas_v2.h>)
145+ #endif // __has_include (<cusolverDn.h>)
146+ #if __has_include (<cublas_v2.h>)
147147 if constexpr (::std::is_same_v<T, cublasStatus_t>)
148148 {
149149 format (" %s(%u) [device %d] CUBLAS error in %s: %s." ,
@@ -154,7 +154,7 @@ public:
154154 cublasGetStatusString (status));
155155 }
156156 else
157- #endif // _CCCL_HAS_INCLUDE (<cublas_v2.h>)
157+ #endif // __has_include (<cublas_v2.h>)
158158 if constexpr (::std::is_same_v<T, cudaOccError>)
159159 {
160160 format (" %s(%u) [device %d] CUDA OCC error in %s: %s." ,
@@ -224,7 +224,7 @@ UNITTEST("cuda_exception")
224224{
225225 auto e = cuda_exception (CUDA_SUCCESS);
226226 EXPECT (e.what ()[0 ] == 0 );
227- # if _CCCL_HAS_INCLUDE (<cusolverDn.h>)
227+ # if __has_include (<cusolverDn.h>)
228228 auto e1 = cuda_exception (CUSOLVER_STATUS_ZERO_PIVOT);
229229 EXPECT (strlen (e1 .what ()) > 0u );
230230# endif
0 commit comments