Skip to content

Commit

Permalink
Move specific paths to host config
Browse files Browse the repository at this point in the history
  • Loading branch information
adayton1 committed Jan 28, 2025
1 parent 6a46595 commit 90a3580
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions configs/lc/toss_4_x86_64_ib_cray/amdclang.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ set(ENABLE_HIP ON CACHE BOOL "Enable Hip")
set(ROCM_PATH "/usr/tce/packages/rocmcc/rocmcc-6.3.0-magic" CACHE PATH "")
set(CMAKE_HIP_ARCHITECTURES "gfx942:xnack+" CACHE STRING "")
set(AMDGPU_TARGETS "gfx942:xnack+" CACHE STRING "")

# Used by the DeviceASAN example
set(CARE_ASAN_RPATH_FLAG "-Wl,-rpath,/opt/rocm-6.3.0/lib/asan/:/opt/rocm-6.3.0/llvm/lib/asan:/opt/rocm-6.3.0/lib/llvm/lib/clang/18/lib/linux" CACHE STRING "")
2 changes: 1 addition & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ if (ENABLE_HIP)
target_include_directories(DeviceASANExample PRIVATE ${PROJECT_BINARY_DIR}/include)

target_compile_options(DeviceASANExample PRIVATE -fsanitize=address -shared-libsan -g)
target_link_options(DeviceASANExample PRIVATE -fsanitize=address -shared-libsan -g -Wl,-rpath,/opt/rocm-6.3.0/lib/asan/:/opt/rocm-6.3.0/llvm/lib/asan:/opt/rocm-6.3.0/lib/llvm/lib/clang/18/lib/linux)
target_link_options(DeviceASANExample PRIVATE -fsanitize=address -shared-libsan -g ${CARE_ASAN_RPATH_FLAG})
endif ()

0 comments on commit 90a3580

Please sign in to comment.