-
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.
Merge pull request #57 from idigs/main
breakout build scripts
- Loading branch information
Showing
6 changed files
with
46 additions
and
44 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: spack | ||
name: agate | ||
on: [ push, workflow_dispatch ] | ||
|
||
jobs: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
cd ./KORC | ||
rm -f CMakeCache.txt | ||
rm -rf CMakeFiles | ||
rm -rf ./build_cpu && mkdir $_ | ||
cd ./build_cpu | ||
cmake -DCMAKE_BUILD_TYPE:String=Debug \ | ||
-DUSE_PSPLINE=ON \ | ||
-DUSE_FIO=OFF \ | ||
../ | ||
make -j VERBOSE=1 | ||
|
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,27 @@ | ||
#!/bin/bash | ||
|
||
# load nvhpc from environment module | ||
module load nvhpc-hpcx/24.5 | ||
module list | ||
. ./spack/share/spack/setup-env.sh | ||
spack load hdf5 +fortran -mpi %nvhpc@24.5 | ||
|
||
cd ./KORC | ||
rm -f CMakeCache.txt | ||
rm -rf CMakeFiles | ||
rm -rf ./build_gpu && mkdir $_ | ||
cd ./build_gpu | ||
cmake \ | ||
-DCMAKE_BUILD_TYPE:String=Debug \ | ||
-DUSE_PSPLINE=ON \ | ||
-DUSE_ACC=ON \ | ||
-DUSE_FIO=OFF \ | ||
-DCMAKE_Fortran_FLAGS="-acc=gpu -gpu=deepcopy -c++libs" \ | ||
-DCMAKE_CXX_FLAGS="-std=c++11 -mp" \ | ||
-DCMAKE_C_FLAGS="-mp" \ | ||
../ | ||
make -j VERBOSE=1 | ||
|
||
# | ||
# -gpu=cc80 indicates that target gpu is Nvidia A100 | ||
# |
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