File tree Expand file tree Collapse file tree 3 files changed +1
-7
lines changed
openmp/libomptarget/plugins/cuda Expand file tree Collapse file tree 3 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ CUresult cuInit(unsigned X) {
93
93
// Note: Called exactly once from cuda rtl.cpp in a global constructor so
94
94
// does not need to handle being called repeatedly or concurrently
95
95
if (!checkForCUDA ()) {
96
- return CUDA_ERROR_INVALID_HANDLE ;
96
+ return CUDA_ERROR_INVALID_VALUE ;
97
97
}
98
98
return dlwrap_cuInit (X);
99
99
}
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ typedef struct CUstream_st *CUstream;
26
26
typedef enum cudaError_enum {
27
27
CUDA_SUCCESS = 0 ,
28
28
CUDA_ERROR_INVALID_VALUE = 1 ,
29
- CUDA_ERROR_INVALID_HANDLE = 400 ,
30
29
} CUresult;
31
30
32
31
typedef enum CUstream_flags_enum {
Original file line number Diff line number Diff line change @@ -401,11 +401,6 @@ class DeviceRTLTy {
401
401
DP (" Start initializing CUDA\n " );
402
402
403
403
CUresult Err = cuInit (0 );
404
- if (Err == CUDA_ERROR_INVALID_HANDLE) {
405
- // Can't call cuGetErrorString if dlsym failed
406
- DP (" Failed to load CUDA shared library\n " );
407
- return ;
408
- }
409
404
if (!checkResult (Err, " Error returned from cuInit\n " )) {
410
405
return ;
411
406
}
You can’t perform that action at this time.
0 commit comments