Skip to content

Commit 45089fe

Browse files
committed
fix a compilation bug
1 parent bdde73a commit 45089fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/module_hsolver/kernels/cuda/diag_cusolver.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Diag_Cusolver_gvd::Diag_Cusolver_gvd(){
77
// step 1: create cusolver/cublas handle
8-
#ifdef __MPI
8+
#if defined(__MPI) && defined(__CUDA)
99
device_id = base_device::information::set_device_by_rank();
1010
checkCudaErrors( cudaSetDevice(device_id) );
1111
#endif

0 commit comments

Comments
 (0)