Skip to content

Commit

Permalink
update CUDA_TRY macros to explicitly cast cudaError_t to int when log…
Browse files Browse the repository at this point in the history
…ging

Signed-off-by: Gregory R. Lee <[email protected]>
  • Loading branch information
grlee77 committed Sep 27, 2024
1 parent 29d2718 commit 40184bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
__LINE__, \
__FILE__, \
cudaGetErrorString(cuda_status), \
cuda_status); \
static_cast<int>(cuda_status)); \
throw std::runtime_error("Unable to copy device to host"); \
} \
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
__LINE__, \
__FILE__, \
cudaGetErrorString(cuda_status), \
cuda_status); \
static_cast<int>(cuda_status)); \
throw std::runtime_error("Unable to copy device to host"); \
} \
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
__LINE__, \
__FILE__, \
cudaGetErrorString(cuda_status), \
cuda_status); \
static_cast<int>(cuda_status)); \
throw std::runtime_error("Unable to copy device to host"); \
} \
}
Expand Down

0 comments on commit 40184bb

Please sign in to comment.