Skip to content

Commit

Permalink
Fixes #558: Instead of forcing NVIDIA's PTX compiler to depend on a t…
Browse files Browse the repository at this point in the history
…hreads library, let's have _us_ depend on it - so as not to anger certain versions of CMake.
  • Loading branch information
Eyal Rozenberg committed Dec 21, 2023
1 parent fd810d0 commit b9b2eff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 11.1)
else()
target_link_libraries(caw_rtc INTERFACE CUDA::nvptxcompiler_static)
endif()
target_link_libraries(CUDA::nvptxcompiler_static INTERFACE Threads::Threads) # Because the NVIDIA PTX compiler itself uses threads
target_link_libraries(caw_rtc INTERFACE Threads::Threads) # Because the NVIDIA PTX compiler itself uses threads
endif()

target_link_libraries(caw_nvtx INTERFACE cuda-api-wrappers::runtime-and-driver ${CMAKE_DL_LIBS}) # libnvToolsExt uses dlclose
Expand Down

0 comments on commit b9b2eff

Please sign in to comment.