We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fef22d commit e47036bCopy full SHA for e47036b
CMakeLists.txt
@@ -527,7 +527,12 @@ function(MFC_SETUP_TARGET)
527
528
if (CMAKE_Fortran_COMPILER_ID STREQUAL "NVHPC" OR CMAKE_Fortran_COMPILER_ID STREQUAL "PGI")
529
find_package(CUDAToolkit REQUIRED)
530
- target_link_libraries(${a_target} PRIVATE CUDA::nvToolsExt)
+ if (TARGET CUDA::nvToolsExt) # CUDA <= 12.8
531
+ target_link_libraries(${a_target} PRIVATE CUDA::nvToolsExt)
532
+ else() # CUDA >= 12.9
533
+ target_link_libraries(${a_target} PRIVATE nvhpcwrapnvtx)
534
+ endif()
535
+ target_link_options(${a_target} PRIVATE "-cudalib=nvtx")
536
endif()
537
endforeach()
538
0 commit comments