Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
195ec83
rocm build on tuo
chapman39 Oct 2, 2025
bf23830
Merge remote-tracking branch 'origin/develop' into task/chapman39/tos…
chapman39 Oct 6, 2025
23ada41
Merge remote-tracking branch 'origin/develop' into task/chapman39/tos…
chapman39 Oct 13, 2025
4150fd7
update mfem, tribol, hypre
chapman39 Oct 13, 2025
dfa3a1c
update axom
chapman39 Oct 14, 2025
fd6208b
update axom package
chapman39 Oct 15, 2025
3232cca
update uberenv
chapman39 Oct 15, 2025
d761498
update cray mpich version
chapman39 Oct 15, 2025
2c457d2
cleanup
chapman39 Oct 15, 2025
18cba34
Merge remote-tracking branch 'origin/develop' into task/chapman39/tos…
chapman39 Oct 27, 2025
9734b5a
update versions, update axom package to lastest
chapman39 Oct 29, 2025
4b435d5
Merge remote-tracking branch 'origin/develop' into task/chapman39/tos…
chapman39 Oct 30, 2025
f7a98c9
fix enzyme package
chapman39 Nov 3, 2025
cda3c73
Merge remote-tracking branch 'origin/develop' into task/chapman39/tos…
chapman39 Nov 5, 2025
291b664
something else was defined 4 underscores
chapman39 Nov 12, 2025
267ee9d
fix some build errors
chapman39 Nov 12, 2025
4009f37
rzadams host config
chapman39 Nov 13, 2025
54f4a17
tuo host config
chapman39 Nov 13, 2025
18633c4
disabling enzyme on cray for now
chapman39 Nov 21, 2025
5ccfe94
Merge branch 'task/chapman39/toss4_cray-tpls-2025-10-01' of github.co…
chapman39 Nov 21, 2025
ee34965
Merge remote-tracking branch 'origin/develop' into task/chapman39/tos…
chapman39 Nov 21, 2025
33dd856
switch ci to tuo
chapman39 Nov 21, 2025
185d70c
rz host configs
chapman39 Nov 21, 2025
b6afdf1
cz host configs'
chapman39 Nov 21, 2025
ced037d
Merge branch 'task/chapman39/toss4_cray-tpls-2025-10-01' of github.co…
chapman39 Nov 21, 2025
6ee27df
rm tioga hc
chapman39 Nov 21, 2025
2b4ad57
style
chapman39 Nov 21, 2025
dde230b
attempt to fix tuo runner, add additional comments to spack packages
chapman39 Nov 21, 2025
f21e54f
fix ci
chapman39 Nov 22, 2025
4ca58b8
fix docker
chapman39 Nov 24, 2025
d74452d
increase tuo time
chapman39 Nov 24, 2025
c53c732
update config script and docker host configs
chapman39 Nov 24, 2025
967e640
re-add host configs with +enzyme
chapman39 Nov 24, 2025
ff59e28
help install on toss4_cray
chapman39 Nov 24, 2025
bf886f1
space
chapman39 Nov 25, 2025
318cefe
rm space
chapman39 Nov 26, 2025
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
12 changes: 6 additions & 6 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/develop' }}

env:
CLANG_DOCKER_IMAGE: seracllnl/tpls:clang-19_10-09-25_23h-54m
CLANG_DOCKER_IMAGE: seracllnl/tpls:clang-19_11-24-25_18h-57m
CUDA_DOCKER_IMAGE: seracllnl/tpls:cuda-12_04-16-25_20h-55m
GCC_DOCKER_IMAGE: seracllnl/tpls:gcc-14_10-09-25_23h-54m
GCC_DOCKER_IMAGE: seracllnl/tpls:gcc-14_11-24-25_18h-57m

jobs:
# Hacky solution to reference env variables outside of `run` steps https://stackoverflow.com/a/74217028
Expand Down Expand Up @@ -63,8 +63,8 @@ jobs:
container:
image: ${{ matrix.config.compiler_image }}
volumes:
- /home/serac/serac
# Required - default is set to user "serac"
- /home/smith/smith
# Required - default is set to user "smith"
options: --user root
steps:
- name: Checkout Smith
Expand Down Expand Up @@ -106,8 +106,8 @@ jobs:
container:
image: ${{ needs.set_image_vars.outputs.clang_docker_image }}
volumes:
- /home/serac/serac
# Required - default is set to user "serac"
- /home/smith/smith
# Required - default is set to user "smith"
options: --user root
env:
CHECK_TYPE: ${{ matrix.check_type }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker_build_tpls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
dockerfile_suffix: [clang-19, gcc-14] #, cuda-12]
env:
REPO: seracllnl/tpls
HOSTCONFIG_LOC: /home/serac/export_hostconfig
HOSTCONFIG_LOC: /home/smith/export_hostconfig
DOCKERFILE_PREFIX: ./scripts/docker/dockerfile_
steps:
- name: Extract branch name
Expand Down
37 changes: 15 additions & 22 deletions .gitlab/build_toss4_cray.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
.on_toss4_cray:
variables:
SCHEDULER_PARAMETERS: "--queue pci --exclusive --time-limit=${ALLOC_TIME}m --nodes=${ALLOC_NODES}"
COMPILER: "[email protected]"
HOST_CONFIG: "tuolumne-toss_4_x86_64_ib_cray-${COMPILER}_hip.cmake"
tags:
- batch
- tioga
- tuolumne
rules:
- if: '$CI_COMMIT_BRANCH =~ /_qnone/ || $ON_TOSS4_CRAY == "OFF"' #run except if ...
when: never
Expand All @@ -32,48 +34,39 @@
####
# Build jobs

toss4_cray-rocmcc_6_2_1-src:
toss4_cray-llvm_amdgpu_6_4_2-src:
variables:
COMPILER: "[email protected]"
HOST_CONFIG: "tioga-toss_4_x86_64_ib_cray-${COMPILER}_hip.cmake"
EXTRA_CMAKE_OPTIONS: "-DENABLE_BENCHMARKS=ON -DENABLE_DOCS=OFF -DCMAKE_BUILD_TYPE=Debug"
ALLOC_NODES: "1"
ALLOC_TIME: "30"
ALLOC_TIME: "60"
extends: .src_build_on_toss4_cray

toss4_cray-rocmcc_6_2_1-src-codevelop:
toss4_cray-llvm_amdgpu_6_4_2-src-codevelop:
variables:
COMPILER: "[email protected]"
HOST_CONFIG: "tioga-toss_4_x86_64_ib_cray-${COMPILER}_hip.cmake"
# TODO: Add -DSMITH_USE_DFEM=ON when TPLs are updated
# TODO: Add -DSMITH_USE_DFEM=ON when enzyme is enabled in toss4_cray host configs
EXTRA_CMAKE_OPTIONS: "-DENABLE_BENCHMARKS=ON -DENABLE_DOCS=OFF -DCMAKE_BUILD_TYPE=Debug -DSMITH_ENABLE_CODEVELOP=ON"
EXTRA_BUILD_OPTIONS: "--skip-install"
ALLOC_NODES: "1"
ALLOC_TIME: "30"
ALLOC_TIME: "60"
extends: .src_build_on_toss4_cray

# NOTE: SPEC should matches specs.json, but devtools and profiling variants removed
toss4_cray-rocmcc_6_2_1-tpl:
toss4_cray-llvm_amdgpu_6_4_2-tpl:
variables:
COMPILER: "[email protected]"
SPEC: "--spec %${COMPILER}~openmp+rocm~petsc amdgpu_target=gfx90a ^[email protected] ^[email protected] ^[email protected] ^[email protected] ^hdf5 cflags=-Wno-int-conversion"
SPEC: "--spec %~devtools~profiling~openmp+rocm~petsc~slepc~enzyme~sundials amdgpu_target=gfx942,gfx90a %${COMPILER}"
ALLOC_NODES: "1"
ALLOC_TIME: "45"
ALLOC_TIME: "90"
extends: .tpl_build_on_toss4_cray

toss4_cray-rocmcc_6_2_1-examples:
toss4_cray-llvm_amdgpu_6_4_2-examples:
variables:
COMPILER: "[email protected]"
HOST_CONFIG: "tioga-toss_4_x86_64_ib_cray-${COMPILER}_hip.cmake"
EXTRA_CMAKE_OPTIONS: "-DCMAKE_BUILD_TYPE=Debug"
ALLOC_NODES: "1"
ALLOC_TIME: "45"
ALLOC_TIME: "90"
extends: .examples_build_on_toss4_cray

toss4_cray-rocmcc_6_2_1-benchmarks:
toss4_cray-llvm_amdgpu_6_4_2-benchmarks:
variables:
COMPILER: "[email protected]"
HOST_CONFIG: "tioga-toss_4_x86_64_ib_cray-${COMPILER}_hip.cmake"
ALLOC_NODES: "1"
ALLOC_TIME: "60"
ALLOC_TIME: "120"
extends: .benchmarks_build_on_toss4_cray
2 changes: 1 addition & 1 deletion .uberenv_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"package_final_phase" : "initconfig",
"package_source_dir" : "../..",
"spack_url": "https://github.com/spack/spack.git",
"spack_commit": "b4b1c5f271c75e918ce922ff1bcc77542eda3ec9",
"spack_commit": "734c5db2121b01c373eed6538e452f18887e9e44",
"spack_packages_url": "https://github.com/spack/spack-packages.git",
"spack_packages_commit": "a75a7f75182ffc7a51c6ca7f0fec4bf9b2705be8",
"spack_configs_path": "scripts/spack/configs",
Expand Down
2 changes: 1 addition & 1 deletion axom
Submodule axom updated 282 files
4 changes: 2 additions & 2 deletions cmake/thirdparty/SetupSmithThirdParty.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ if (NOT SMITH_THIRD_PARTY_LIBRARIES_FOUND)
set(MFEM_USE_SLEPC OFF CACHE BOOL "")
endif()

set(MFEM_USE_RAJA OFF CACHE BOOL "")
set(MFEM_USE_RAJA ${SMITH_ENABLE_HIP} CACHE BOOL "")
set(MFEM_USE_SUNDIALS ${SMITH_USE_SUNDIALS} CACHE BOOL "")
if(SUPERLUDIST_DIR)
smith_assert_is_directory(DIR_VARIABLE SUPERLUDIST_DIR)
Expand Down Expand Up @@ -326,7 +326,7 @@ if (NOT SMITH_THIRD_PARTY_LIBRARIES_FOUND)
"Additional packages required by STRUMPACK.")
set(STRUMPACK_TARGET_NAMES STRUMPACK::strumpack CACHE STRING "")
endif()
set(MFEM_USE_UMPIRE OFF CACHE BOOL "")
set(MFEM_USE_UMPIRE ${SMITH_ENABLE_HIP} CACHE BOOL "")
set(MFEM_USE_ZLIB ON CACHE BOOL "")
if(ENZYME_DIR)
smith_assert_is_directory(DIR_VARIABLE ENZYME_DIR)
Expand Down
6 changes: 3 additions & 3 deletions config-build.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
_host_configs_map = {"rzgenie" : "[email protected]",
"rzwhippet" : "[email protected]",
"rzvernal" : "[email protected]_hip.cmake",
"rzansel" : "[email protected]_cuda.cmake",
"rzadams" : "[email protected]_hip.cmake",
"dane" : "[email protected]",
"tioga" : "tioga-toss_4_x86_64_ib_cray-rocmcc@6.2.1_hip.cmake",
"lassen" : "[email protected]_cuda.cmake"}
"tioga" : "tuolumne-toss_4_x86_64_ib_cray-llvm-amdgpu@6.4.2_hip.cmake",
"tuolumne" : "[email protected]_hip.cmake"}

def get_machine_name():
return socket.gethostname().rstrip('1234567890')
Expand Down
13 changes: 13 additions & 0 deletions examples/using-with-cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ project(smith_example LANGUAGES C CXX)

message(STATUS "CMake Version: ${CMAKE_VERSION}")

if (ENABLE_CUDA)
enable_language(CUDA)
endif()

if (ENABLE_HIP)
enable_language(HIP)
endif()

include(CMakeFindDependencyMacro)
find_dependency(smith REQUIRED NO_DEFAULT_PATH PATHS "${SMITH_DIR}/lib/cmake")

Expand Down Expand Up @@ -46,6 +54,11 @@ endforeach()
add_executable(smith_example smith_example.cpp)
target_link_libraries(smith_example smith::smith)

# Compile as HIP source if enabled
if (ENABLE_HIP)
set_source_files_properties(smith_example.cpp PROPERTIES LANGUAGE HIP)
endif()

enable_testing()
add_test(NAME smith_example
COMMAND ${MPIEXEC_EXECUTABLE} ${MPIEXEC_NUMPROC_FLAG} 1 ./smith_example)
18 changes: 18 additions & 0 deletions examples/using-with-cmake/host-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ set(MPIEXEC_EXECUTABLE "@MPIEXEC_EXECUTABLE@" CACHE PATH "")
set(MPIEXEC_NUMPROC_FLAG "@MPIEXEC_NUMPROC_FLAG@" CACHE STRING "")


# OpenMP
set(ENABLE_OPENMP @ENABLE_OPENMP@ CACHE BOOL "")


# CUDA
set(ENABLE_CUDA @ENABLE_CUDA@ CACHE BOOL "")

Expand All @@ -44,5 +48,19 @@ if(ENABLE_CUDA)
endif()


# HIP/ ROCm
set(ENABLE_HIP @ENABLE_HIP@ CACHE BOOL "")

if(ENABLE_HIP)
set(ROCM_PATH "@ROCM_PATH@" CACHE PATH "")
set(CMAKE_HIP_ARCHITECTURES "@CMAKE_HIP_ARCHITECTURES@" CACHE STRING "")
set(CMAKE_HIP_COMPILER "@CMAKE_HIP_COMPILER@" CACHE FILEPATH "")
set(HIP_ROOT_DIR "@HIP_ROOT_DIR@" CACHE PATH "")
set(AMDGPU_TARGETS "@AMDGPU_TARGETS@" CACHE STRING "")
set(GPU_TARGETS "@GPU_TARGETS@" CACHE STRING "")
set(ROCM_ROOT_DIR "@ROCM_ROOT_DIR@" CACHE PATH "")
endif()


# Path to Smith
set(SMITH_DIR "@CMAKE_INSTALL_PREFIX@" CACHE PATH "")
Loading