Skip to content

Commit

Permalink
Look at hip implicit libraries downstream
Browse files Browse the repository at this point in the history
  • Loading branch information
sethrj committed Jan 23, 2024
1 parent 81ac5c3 commit c49f616
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
7 changes: 0 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -456,13 +456,6 @@ elseif(CELERITAS_USE_HIP)
target_link_directories(celeritas_device_toolkit
INTERFACE "$<INSTALL_INTERFACE:${CMAKE_HIP_IMPLICIT_LINK_DIRECTORIES}>"
)
message(STATUS
"CMAKE_HIP_IMPLICIT_LINK_LIBRARIES=${CMAKE_HIP_IMPLICIT_LINK_LIBRARIES}"
)
message(STATUS
"CMAKE_HIP_IMPLICIT_LINK_DIRECTORIES=${CMAKE_HIP_IMPLICIT_LINK_DIRECTORIES}"
)

endif()
endif()

Expand Down
10 changes: 9 additions & 1 deletion example/minimal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,19 @@ set(CMAKE_DEBUG_TARGET_PROPERTIES
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/..")
find_package(Celeritas 0.5 REQUIRED)

message(STATUS
"CMAKE_HIP_IMPLICIT_LINK_LIBRARIES=${CMAKE_HIP_IMPLICIT_LINK_LIBRARIES}"
)
message(STATUS
"CMAKE_HIP_IMPLICIT_LINK_DIRECTORIES=${CMAKE_HIP_IMPLICIT_LINK_DIRECTORIES}"
)

add_executable(minimal minimal.cc)

# Use special linking macros to support CUDA RDC across multiple libraries when
# using VecGeom.
include(CeleritasLibrary)
target_link_libraries(minimal
PUBLIC Celeritas::celeritas Celeritas::celeritas_device_toolkit
PUBLIC Celeritas::celeritas
)
target_link_libraries(minimal

0 comments on commit c49f616

Please sign in to comment.