Skip to content

Commit

Permalink
correct cudaGetDeviceProperties return value
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Jan 12, 2020
1 parent 4b774a9 commit 8a84d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libtorque/hardware/cuda.c
Expand Up @@ -54,7 +54,7 @@ torque_err cudaid(torque_cput *cpudesc,unsigned devno){
if((cres = cuDeviceGet(&c,devno)) != CUDA_SUCCESS){
return TORQUE_ERR_INVAL;
}
if((cerr = cudaGetDeviceProperties(&dprop, c)) != CUDA_SUCCESS){
if((cerr = cudaGetDeviceProperties(&dprop, c)) != cudaSuccess){
return TORQUE_ERR_INVAL;
}
cpudesc->spec.cuda.major = dprop.major;
Expand Down

0 comments on commit 8a84d7c

Please sign in to comment.