forked from E4S-Project/testsuite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cce10ec
commit b64df9a
Showing
5 changed files
with
51 additions
and
0 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 @@ | ||
../validation_tests/amrex-rocm |
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,7 @@ | ||
#!/bin/bash | ||
rm -rf Amr Basic Blueprint EB \ | ||
ForkJoin FortranInterface \ | ||
GPU LinearSolvers ML MUI \ | ||
Particles SDC SENSEI SWFFT \ | ||
cmake CMakeLists.txt build \ | ||
plt* plot* amrex-tutorials |
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,20 @@ | ||
#!/bin/bash -e | ||
. ./setup.sh | ||
set -x | ||
|
||
printenv | ||
|
||
git clone https://github.com/AMReX-Codes/amrex-tutorials.git | ||
mv amrex-tutorials/ExampleCodes/* . | ||
|
||
mkdir -p build | ||
cd build | ||
|
||
HIPFLAG="" | ||
if [ $USEROCM = 1 ];then | ||
HIPFLAG="-DAMReX_GPU_BACKEND=HIP -DAMReX_AMD_ARCH=${HCC_AMDGPU_TARGET} -DCMAKE_CXX_COMPILER=hipcc" | ||
fi | ||
|
||
cmake -DAMReX_ROOT=${AMREX_ROOT} ${HIPFLAG} .. | ||
make -j16 | ||
cd - |
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,3 @@ | ||
#!/bin/bash -e | ||
./build/Basic/HelloWorld_C/HelloWorld_C | ||
./build/Basic/main_C/main_C |
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,20 @@ | ||
#!/bin/bash | ||
. ../../setup.sh | ||
|
||
THISDIR=`basename "$PWD"` | ||
USECUDA=0 | ||
USEROCM=0 | ||
|
||
if [ "$THISDIR" = "amrex-cuda" ];then | ||
spackLoadUnique amrex+cuda #cuda_arch=80 | ||
USECUDA=1 | ||
elif [ "$THISDIR" = "amrex-rocm" ];then | ||
spackLoadUnique amrex+rocm | ||
USEROCM=1 | ||
else | ||
spackLoadUnique amrex~rocm~cuda | ||
fi | ||
|
||
if ! command -v cmake >/dev/null 2>&1 ; then | ||
spackLoadUnique [email protected]: | ||
fi |