We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdde73a commit 45089feCopy full SHA for 45089fe
source/module_hsolver/kernels/cuda/diag_cusolver.cu
@@ -5,7 +5,7 @@
5
6
Diag_Cusolver_gvd::Diag_Cusolver_gvd(){
7
// step 1: create cusolver/cublas handle
8
-#ifdef __MPI
+#if defined(__MPI) && defined(__CUDA)
9
device_id = base_device::information::set_device_by_rank();
10
checkCudaErrors( cudaSetDevice(device_id) );
11
#endif
0 commit comments