Skip to content

Commit

Permalink
Update java/src/main/native/include/jni_utils.hpp
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Lowe <[email protected]>
  • Loading branch information
sperlingxx and jlowe authored Apr 22, 2022
1 parent 16c5e70 commit 907c67e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions java/src/main/native/include/jni_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -778,11 +778,9 @@ inline void jni_cuda_check(JNIEnv *const env, cudaError_t cuda_status) {
jthrowable jt = cuda_exception(env, cuda_status);
if (jt != NULL) {
env->Throw(jt);
throw jni_exception("CUDA ERROR");
} else {
throw jni_exception(std::string("CUDA ERROR: code ") +
std::to_string(static_cast<int>(cuda_status)));
}
throw jni_exception(std::string("CUDA ERROR: code ") +
std::to_string(static_cast<int>(cuda_status)));
}
}

Expand Down

0 comments on commit 907c67e

Please sign in to comment.