Skip to content

Commit

Permalink
Merge pull request #85 from lanl/rberger_ci_upgrade
Browse files Browse the repository at this point in the history
ci: remove power9 and add a100 build
  • Loading branch information
Yurlungur authored Feb 22, 2024
2 parents cea1c2c + f036a6d commit 87a4869
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ before_script:
.skylake: &skylake
SCHEDULER_PARAMETERS: "--nodes=1 --partition=skylake-gold,skylake-platinum"

.power9: &power9
SCHEDULER_PARAMETERS: "--nodes=1 --partition=power9-rhel7"
.a100: &a100
SCHEDULER_PARAMETERS: "--nodes=1 --partition=shared-gpu-ampere"

#################
# General Setup #
Expand Down Expand Up @@ -87,9 +87,9 @@ before_script:
- module load gcc/${SPINER_GCC_VERSION}
- module load cuda/${SPINER_CUDA_VERSION}
- |
if [[ ${CI_JOB_NAME} =~ "power9" ]];
if [[ ${CI_JOB_NAME} =~ "a100" ]];
then
export SPINER_SPACK_SPEC="${SPINER_SPACK_SPEC}+hdf5+mpi+kokkos+cuda cuda_arch=70";
export SPINER_SPACK_SPEC="${SPINER_SPACK_SPEC}+hdf5+mpi+kokkos+cuda cuda_arch=80";
fi
- |
if [[ "${CI_COMMIT_BRANCH}" == "${CI_DEFAULT_BRANCH}" ]];
Expand Down Expand Up @@ -123,9 +123,9 @@ before_script:
-DSPINER_BUILD_TESTS=ON \
-DCMAKE_INSTALL_PREFIX=${CI_PROJECT_DIR}/install \
-DSPINER_USE_HDF=ON \
-DSPINER_TEST_USE_KOKKOS=$([[ ${CI_JOB_NAME} =~ "power9" ]] && echo ON || echo OFF) \
-DSPINER_TEST_USE_KOKKOS_CUDA=$([[ ${CI_JOB_NAME} =~ "power9" ]] && echo ON || echo OFF) \
-DCMAKE_CXX_COMPILER=$([[ ${CI_JOB_NAME} =~ "power9" ]] && echo nvcc_wrapper || g++) \
-DSPINER_TEST_USE_KOKKOS=$([[ ${CI_JOB_NAME} =~ "a100" ]] && echo ON || echo OFF) \
-DSPINER_TEST_USE_KOKKOS_CUDA=$([[ ${CI_JOB_NAME} =~ "a100" ]] && echo ON || echo OFF) \
-DCMAKE_CXX_COMPILER=$([[ ${CI_JOB_NAME} =~ "a100" ]] && echo nvcc_wrapper || g++) \
..
- make -j $(nproc)
- make install
Expand All @@ -149,9 +149,9 @@ gnu_skylake:
variables:
<<: *skylake

gnu_power9:
gnu_a100:
<<: *job_def
extends: .test
variables:
<<: *power9
<<: *a100

0 comments on commit 87a4869

Please sign in to comment.