Skip to content
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

Remove another reference to FindcuFile #17315

Merged
merged 9 commits into from
Nov 15, 2024
Merged
7 changes: 4 additions & 3 deletions java/src/main/native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ endif()

if(USE_GDS)
message(STATUS "Building with GPUDirect Storage (GDS)/cuFile support")
find_package(cuFile REQUIRED)
if(NOT TARGET CUDA::cuFile)
message(FATAL_ERROR "cuFile support not found")
endif()
endif()

# ##################################################################################################
Expand Down Expand Up @@ -228,8 +230,7 @@ if(USE_GDS)
POSITION_INDEPENDENT_CODE ON
INTERFACE_POSITION_INDEPENDENT_CODE ON
)
target_include_directories(cufilejni PRIVATE "${cuFile_INCLUDE_DIRS}")
target_link_libraries(cufilejni PRIVATE cudfjni "${cuFile_LIBRARIES}")
target_link_libraries(cufilejni PRIVATE cudfjni CUDA::cuFile)
endif()

# ##################################################################################################
Expand Down
Loading