-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Separate host-configs for amdclang w/o +xnack. * Squashing wanrings for amdclang HIP builds. * Add CHAI_UNUSED_VAR.
- Loading branch information
Showing
6 changed files
with
58 additions
and
15 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
host-configs/lc/toss_4_x86_64_ib_cray/amdclang-xnack.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
############################################################################## | ||
# Copyright (c) 2025, Lawrence Livermore National Security, LLC and CHAI | ||
# project contributors. See the CHAI LICENSE file for details. | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
############################################################################## | ||
|
||
# Set up software versions | ||
set(ROCM_VERSION "6.2.0" CACHE PATH "") | ||
set(GCC_VERSION "12.2.1" CACHE PATH "") | ||
|
||
# Set up compilers | ||
set(COMPILER_BASE "/usr/tce/packages/rocmcc/rocmcc-${ROCM_VERSION}-magic" CACHE PATH "") | ||
set(CMAKE_C_COMPILER "${COMPILER_BASE}/bin/amdclang" CACHE PATH "") | ||
set(CMAKE_CXX_COMPILER "${COMPILER_BASE}/bin/amdclang++" CACHE PATH "") | ||
|
||
# Set up compiler flags | ||
set(GCC_HOME "/usr/tce/packages/gcc/gcc-${GCC_VERSION}" CACHE PATH "") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --gcc-toolchain=${GCC_HOME}" CACHE STRING "") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --gcc-toolchain=${GCC_HOME}" CACHE STRING "") | ||
|
||
# Set up HIP | ||
set(ENABLE_HIP ON CACHE BOOL "") | ||
set(ROCM_PATH "/usr/tce/packages/rocmcc/rocmcc-${ROCM_VERSION}-magic" CACHE PATH "") | ||
set(CMAKE_HIP_ARCHITECTURES "gfx942:xnack+" CACHE STRING "") | ||
set(AMDGPU_TARGETS "${CMAKE_HIP_ARCHITECTURES}" CACHE STRING "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters