Skip to content

Commit

Permalink
Add call to auto_set_device
Browse files Browse the repository at this point in the history
  • Loading branch information
abellina committed May 12, 2022
1 parent ffb9c66 commit 7b3dd82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions java/src/main/native/src/CudaJni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ JNIEXPORT void JNICALL Java_ai_rapids_cudf_Cuda_profilerStop(JNIEnv *env, jclass

JNIEXPORT void JNICALL Java_ai_rapids_cudf_Cuda_deviceSynchronize(JNIEnv *env, jclass clazz) {
try {
cudf::jni::auto_set_device(env);
CUDF_CUDA_TRY(cudaDeviceSynchronize());
}
CATCH_STD(env, );
Expand Down

0 comments on commit 7b3dd82

Please sign in to comment.