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

Fix: CMake NVTX not only Hypre #2837

Merged
merged 1 commit into from
Jun 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Tools/CMake/AMReXParallelBackends.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ if ( AMReX_GPU_BACKEND STREQUAL "CUDA"
find_package(CUDAToolkit REQUIRED)
target_link_libraries(amrex PUBLIC CUDA::curand)

# nvToolsExt: if tiny profiler or base profiler are on.
if (AMReX_TINY_PROFILE OR AMReX_BASE_PROFILE)
target_link_libraries(amrex PUBLIC CUDA::nvToolsExt)
endif ()

# Check cuda compiler and host compiler
set_mininum_compiler_version(CUDA NVIDIA 9.0)
check_cuda_host_compiler()
Expand Down
5 changes: 0 additions & 5 deletions Tools/CMake/AMReXThirdPartyLibraries.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ if (AMReX_HYPRE)

# mandatory CUDA dependencies: cuSPARSE, cuRAND
target_link_libraries(amrex PUBLIC CUDA::cusparse CUDA::curand)

# nvToolsExt: if tiny profiler or base profiler are on.
if (AMReX_TINY_PROFILE OR AMReX_BASE_PROFILE)
target_link_libraries(amrex PUBLIC CUDA::nvToolsExt)
endif ()
endif()
target_link_libraries( amrex PUBLIC HYPRE )
endif ()
Expand Down