Skip to content

Commit f010abe

Browse files
committed
Update CUDA's signature
1 parent b164aa9 commit f010abe

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

sycl/plugins/unified_runtime/ur/adapters/cuda/common.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ ur_result_t mapErrorUR(CUresult Result) {
3333
}
3434
}
3535

36-
ur_result_t checkErrorUR(CUresult Result, const char *Function, int Line,
37-
const char *File) {
36+
void checkErrorUR(CUresult Result, const char *Function, int Line,
37+
const char *File) {
3838
if (Result == CUDA_SUCCESS || Result == CUDA_ERROR_DEINITIALIZED) {
39-
return UR_RESULT_SUCCESS;
39+
return;
4040
}
4141

4242
if (std::getenv("SYCL_PI_SUPPRESS_ERROR_MESSAGE") == nullptr &&
@@ -64,10 +64,10 @@ ur_result_t checkErrorUR(CUresult Result, const char *Function, int Line,
6464
throw mapErrorUR(Result);
6565
}
6666

67-
ur_result_t checkErrorUR(ur_result_t Result, const char *Function, int Line,
68-
const char *File) {
67+
void checkErrorUR(ur_result_t Result, const char *Function, int Line,
68+
const char *File) {
6969
if (Result == UR_RESULT_SUCCESS) {
70-
return UR_RESULT_SUCCESS;
70+
return;
7171
}
7272

7373
if (std::getenv("SYCL_PI_SUPPRESS_ERROR_MESSAGE") == nullptr &&

sycl/plugins/unified_runtime/ur/adapters/cuda/common.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ ur_result_t mapErrorUR(CUresult Result);
1919
/// \return UR_RESULT_SUCCESS if \param Result was CUDA_SUCCESS.
2020
/// \throw ur_result_t exception (integer) if input was not success.
2121
///
22-
ur_result_t checkErrorUR(CUresult Result, const char *Function, int Line,
23-
const char *File);
22+
void checkErrorUR(CUresult Result, const char *Function, int Line,
23+
const char *File);
2424

25-
ur_result_t checkErrorUR(ur_result_t Result, const char *Function, int Line,
26-
const char *File);
25+
void checkErrorUR(ur_result_t Result, const char *Function, int Line,
26+
const char *File);
2727

2828
#define UR_CHECK_ERROR(Result) \
2929
checkErrorUR(Result, __func__, __LINE__, __FILE__)

sycl/plugins/unified_runtime/ur/adapters/cuda/usm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ urUSMGetMemAllocInfo(ur_context_handle_t hContext, const void *pMem,
207207
// pointer not known to the CUDA subsystem
208208
return ReturnValue(UR_USM_TYPE_UNKNOWN);
209209
}
210-
Result = checkErrorUR(Ret, __func__, __LINE__ - 5, __FILE__);
210+
checkErrorUR(Ret, __func__, __LINE__ - 5, __FILE__);
211211
if (Value) {
212212
// pointer to managed memory
213213
return ReturnValue(UR_USM_TYPE_SHARED);

0 commit comments

Comments
 (0)