Skip to content

Commit 29bfee6

Browse files
committed
Change the missing files
Signed-off-by: Nghia Truong <nghiat@nvidia.com>
1 parent 010152d commit 29bfee6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/main/cpp/src/ArithmeticJni.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,13 @@ JNIEXPORT jlong JNICALL Java_com_nvidia_spark_rapids_jni_Arithmetic_round(
6666
JNIEnv* env, jclass, jlong input_ptr, jint decimal_places, jint rounding_method)
6767
{
6868
JNI_NULL_CHECK(env, input_ptr, "input is null", 0);
69-
try {
69+
JNI_TRY
70+
{
7071
cudf::jni::auto_set_device(env);
7172
cudf::column_view* input = reinterpret_cast<cudf::column_view*>(input_ptr);
7273
cudf::rounding_method method = static_cast<cudf::rounding_method>(rounding_method);
7374
return cudf::jni::release_as_jlong(spark_rapids_jni::round(*input, decimal_places, method));
7475
}
75-
CATCH_STD(env, 0);
76+
JNI_CATCH(env, 0);
7677
}
7778
}

src/main/cpp/src/DeviceAttrJni.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ extern "C" {
2020
JNIEXPORT jint JNICALL Java_com_nvidia_spark_rapids_jni_DeviceAttr_isDeviceIntegrated(JNIEnv* env,
2121
jclass)
2222
{
23-
try {
23+
JNI_TRY
24+
{
2425
int device{};
2526
CUDF_CUDA_TRY(cudaGetDevice(&device));
2627

@@ -29,7 +30,7 @@ JNIEXPORT jint JNICALL Java_com_nvidia_spark_rapids_jni_DeviceAttr_isDeviceInteg
2930

3031
return integrated;
3132
}
32-
CATCH_STD(env, 0);
33+
JNI_CATCH(env, 0);
3334
}
3435

3536
} // extern "C"

0 commit comments

Comments
 (0)