-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] build failed on cuda 12 runtime #1136
Comments
@ttnghia asked me a question related to this offline, and linked to this issue. I decided to respond here so it's publicly visible. CUDA 12 ships with a version of thrust (2.0.0 or newer, updated in this PR) that requires the use of the libcudacxx function In RAPIDS / libcudf, we are currently pinned to an older libcudacxx that doesn't have this requirement. We do need to migrate to this version to libcudacxx for official CUDA 12 support in libcudacxx -- older versions of libcudacxx like those in RAPIDS right now don't officially support CUDA 12, in my understanding (but they happen to work, it seems). I am working on adding CUDA 12 support in these PRs, and most of the necessary changes revolve around |
The short story is: figure out the return type of your device lambdas, and wrap them in e.g. this one: spark-rapids-jni/src/main/cpp/src/zorder.cu Lines 170 to 173 in 24e502e
should look like
But to do this, you may need to use a fairly new thrust/libcudacxx version to build with both CUDA 11 and CUDA 12. |
I discussed with @ttnghia. I propose the following fix:
To fetch CCCL libraries from source, you'd want to edit the CMakeLists.txt file:
|
Describe the bug
build JNI failed in recent nightly runs in cuda12 runtime. (build in cuda11 works fine)
Steps/Code to reproduce bug
run mvn build of JNI in cuda 12 runtime
Expected behavior
Pass the build
The text was updated successfully, but these errors were encountered: