Skip to content

Commit

Permalink
fix rmm macro call
Browse files Browse the repository at this point in the history
  • Loading branch information
pmattione-nvidia committed Feb 26, 2025
1 parent 54e740a commit 5dc2bcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/src/main/native/src/RmmJni.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019-2024, NVIDIA CORPORATION.
* Copyright (c) 2019-2025, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -657,7 +657,7 @@ JNIEXPORT jlong JNICALL Java_ai_rapids_cudf_Rmm_allocCudaInternal(JNIEnv* env,
try {
cudf::jni::auto_set_device(env);
void* ptr{nullptr};
RMM_CUDA_TRY_ALLOC(cudaMalloc(&ptr, size));
RMM_CUDA_TRY_ALLOC(cudaMalloc(&ptr, size), size);
return reinterpret_cast<jlong>(ptr);
}
CATCH_STD(env, 0)
Expand Down

0 comments on commit 5dc2bcf

Please sign in to comment.