-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merging in changes from main and random_test
- Loading branch information
Showing
34 changed files
with
269 additions
and
57 deletions.
There are no files selected for viewing
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,29 @@ | ||
# | ||
# Workflow runs weekly to prevent GH dependency cache eviction | ||
# | ||
# GitHub Actions run in UTC time | ||
# | ||
|
||
name: cachepoke | ||
on: | ||
schedule: | ||
- cron: '47 18 * * SAT' # Trigger workflow every Sat at 18:47 UTC | ||
|
||
jobs: | ||
job_one: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: spack cache | ||
id: spack-cache | ||
uses: actions/cache@v3 | ||
with: | ||
key: spack-cache-sandlot-6 | ||
path: | | ||
./spack | ||
~/.spack | ||
# | ||
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy | ||
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule | ||
# |
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 |
---|---|---|
|
@@ -61,10 +61,11 @@ jobs: | |
# | ||
|
||
steps: | ||
- name: build korc | ||
- name: run ci_stub/onyx_job_build_cpu.sh | ||
run: | | ||
./KORC/ci_stub/onyx_job_build_cpu.sh | ||
job_setup_spack: | ||
if: true | ||
runs-on: [ self-hosted ] | ||
|
@@ -94,29 +95,22 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
repository: 'spack/spack' | ||
ref: 'v0.21.1' | ||
ref: 'v0.22.2' | ||
path: './spack' | ||
# | ||
# git clone --depth=1 --single-branch --branch v0.21.1 https://github.com/spack/spack.git | ||
# git clone --depth=1 --single-branch --branch v0.22.2 https://github.com/spack/spack.git | ||
# | ||
|
||
- if: ${{ steps.check_spack.outputs.exist != 'true' }} | ||
name: load nvhpc from environment module | ||
run: | | ||
module load nvhpc-hpcx/24.5 | ||
module list | ||
- if: ${{ steps.check_spack.outputs.exist != 'true' }} | ||
name: spack install | ||
name: spack env activate | ||
run: | | ||
. ./spack/share/spack/setup-env.sh | ||
spack config add config:install_tree:padded_length:128 | ||
spack compiler find | ||
spack compiler remove [email protected] | ||
spack install hdf5 +fortran -mpi %[email protected] | ||
spack load hdf5 +fortran -mpi %[email protected] | ||
spack env activate ./KORC/spackenv/excl-milan_linux-ubuntu22.04-zen3 | ||
spack concretize -f | ||
spack install | ||
spack gc -y | ||
# spack install --overwrite | ||
# spack gc -y | ||
|
||
|
||
job_build_gpu: | ||
|
@@ -134,7 +128,11 @@ jobs: | |
steps: | ||
- name: run ci_stub/onyx_job_build_gpu.sh | ||
run: | | ||
./KORC/ci_stub/onyx_job_build_gpu.sh | ||
. ./spack/share/spack/setup-env.sh | ||
spack env activate ./KORC/spackenv/excl-milan_linux-ubuntu22.04-zen3 | ||
spack install | ||
spack build-env hdf5%[email protected]+fortran~mpi -- ./KORC/ci_stub/onyx_job_build_gpu.sh | ||
job_test_cpu: | ||
if: true | ||
|
@@ -153,9 +151,11 @@ jobs: | |
uses: SimenB/github-actions-cpu-cores@v2 | ||
id: cpu-cores | ||
|
||
- name: ctest | ||
- name: run ci_stub/onyx_job_test_cpu.sh | ||
env: | ||
JOB_COUNT: "${{ steps.cpu-cores.outputs.count }}" | ||
run: | | ||
cd ./KORC/build_cpu && ctest --output-on-failure | ||
./KORC/ci_stub/onyx_job_test_cpu.sh | ||
job_test_gpu: | ||
|
@@ -175,13 +175,10 @@ jobs: | |
uses: SimenB/github-actions-cpu-cores@v2 | ||
id: cpu-cores | ||
|
||
- name: ctest | ||
- name: run ci_stub/onyx_job_test_gpu.sh | ||
env: | ||
JOB_COUNT: "${{ steps.cpu-cores.outputs.count }}" | ||
run: | | ||
module load nvhpc-hpcx/24.5 | ||
module list | ||
. ./spack/share/spack/setup-env.sh | ||
spack load hdf5 +fortran -mpi %[email protected] | ||
./KORC/ci_stub/onyx_job_test_gpu.sh | ||
cd ./KORC/build_gpu && ctest -j ${{ steps.cpu-cores.outputs.count }} --output-on-failure | ||
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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
#!/bin/bash | ||
|
||
# load nvhpc from environment module | ||
module load nvhpc-hpcx/24.5 | ||
which h5diff | ||
which nvfortran | ||
which cmake | ||
module list | ||
. ./spack/share/spack/setup-env.sh | ||
spack load hdf5 +fortran -mpi %[email protected] | ||
|
||
cd ./KORC | ||
rm -f CMakeCache.txt | ||
|
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,8 @@ | ||
#!/bin/bash | ||
|
||
env | grep JOB_COUNT | ||
|
||
JOB_COUNT=1 | ||
|
||
cd ./KORC/build_cpu && ctest -j --output-on-failure | ||
|
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,24 @@ | ||
#!/bin/bash | ||
|
||
env | grep JOB_COUNT | ||
|
||
JOB_COUNT=1 | ||
|
||
pushd ./KORC/build_gpu >/dev/null | ||
|
||
ctest -j --output-on-failure | ||
|
||
pushd ./bin >/dev/null | ||
|
||
for j in "mars_test" "egyro_test"; do | ||
for i in $(ls -1 ./${j}/ | sort -k1.6n); do | ||
for x in {1..20}; do echo "."; done | ||
echo "onyx_job_test_gpu >> [Info] << ${j}/${i}/output.korc" | ||
for x in {1..5}; do echo "."; done | ||
cat ./${j}/${i}/output.korc | ||
done | ||
done | ||
|
||
|
||
popd >/dev/null | ||
popd >/dev/null |
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,45 @@ | ||
# This is a Spack Environment file. | ||
# | ||
# It describes a set of packages to be installed, along with | ||
# configuration settings. | ||
spack: | ||
# add package specs to the `specs` list | ||
specs: | ||
- "hdf5%[email protected]+fortran~mpi" | ||
|
||
view: true | ||
concretizer: | ||
unify: true | ||
config: | ||
install_tree: | ||
padded_length: 128 | ||
|
||
compilers: | ||
- compiler: | ||
spec: nvhpc@=24.5 | ||
paths: | ||
cc: /opt/nvidia/hpc_sdk/Linux_x86_64/24.5/compilers/bin/nvc | ||
cxx: /opt/nvidia/hpc_sdk/Linux_x86_64/24.5/compilers/bin/nvc++ | ||
f77: /opt/nvidia/hpc_sdk/Linux_x86_64/24.5/compilers/bin/nvfortran | ||
fc: /opt/nvidia/hpc_sdk/Linux_x86_64/24.5/compilers/bin/nvfortran | ||
flags: {} | ||
operating_system: ubuntu22.04 | ||
target: x86_64 | ||
modules: | ||
- nvhpc-hpcx/24.5 | ||
environment: {} | ||
extra_rpaths: [] | ||
|
||
- compiler: | ||
spec: gcc@=11.4.0 | ||
paths: | ||
cc: /usr/bin/gcc | ||
cxx: /usr/bin/g++ | ||
f77: /usr/bin/gfortran | ||
fc: /usr/bin/gfortran | ||
flags: {} | ||
operating_system: ubuntu22.04 | ||
target: x86_64 | ||
modules: [] | ||
environment: {} | ||
extra_rpaths: [] |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Oops, something went wrong.