Open amklinv-nnl opened 2 years ago
Hey @amklinv-nnl - cuda_runtime
is a special library provided by BLT (our CMake utilities). In RAJA we are "exporting" these special targets so they are found in downstream, but that logic is missing from CHAI. I will create a branch with a fix.
In the meantime, assuming you are compiling with nvcc, you could just strip that entry from the INTERFACE_LINK_LIBRARIES list and it should work, something like:
get_target_property(chai_inteface_libs chai INTERFACE_LINK_LIBRARIES)
list(REMOVE_ITEM chai_interface_libs cuda)
set_target_properties(chai PROPERTIES INTERFACE_LINK_LIBRARIES chai_interface_libs)
Hello,
I'm having trouble linking my project to chai because chai wants to pull in cuda_runtime:
On my system with cuda 11.4.4, cuda_runtime.so is not available.
I don't know if this is something that got renamed in cuda, but raja correctly links against cudart_static.