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
c77b428
commit cce10ec
Showing
9 changed files
with
101 additions
and
3 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-cuda |
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,18 @@ | ||
#!/bin/bash -e | ||
. ./setup.sh | ||
set -x | ||
|
||
git clone https://github.com/AMReX-Codes/amrex-tutorials.git | ||
mv amrex-tutorials/ExampleCodes/* . | ||
|
||
mkdir -p build | ||
cd build | ||
|
||
CUDAFLAG="" | ||
if [ $USECUDA = 1 ];then | ||
CUDAFLAG="-DAMReX_GPU_BACKEND=CUDA" | ||
fi | ||
|
||
cmake -DAMReX_ROOT=${AMREX_ROOT} ${CUDAFLAG} .. | ||
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,10 @@ | ||
#!/bin/bash -e | ||
./build/Amr/Advection_AmrCore/Advection_AmrCore ./build/Amr/Advection_AmrCore/inputs | ||
./build/Basic/HeatEquation_EX0_C/HeatEquation_EX0_C build/Basic/HeatEquation_EX0_C/inputs | ||
./build/Basic/HelloWorld_C/HelloWorld_C | ||
./build/Basic/main_C/main_C | ||
./build/LinearSolvers/ABecLaplacian_C/ABecLaplacian_C build/LinearSolvers/ABecLaplacian_C/inputs | ||
./build/LinearSolvers/NodalPoisson/NodalPoisson build/LinearSolvers/NodalPoisson/inputs-rt | ||
./build/LinearSolvers/NodeTensorLap/NodeTensorLap | ||
./build/GPU/CNS/RT/GPU_CNS_RT ./build/GPU/CNS/RT/inputs-rt | ||
./build/GPU/CNS/Sod/GPU_CNS_Sod ./build/GPU/CNS/Sod/inputs-rt |
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 |
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,13 @@ | ||
#!/bin/bash -e | ||
. ./setup.sh | ||
set -x | ||
|
||
git clone https://github.com/AMReX-Codes/amrex-tutorials.git | ||
mv amrex-tutorials/ExampleCodes/* . | ||
|
||
mkdir -p build | ||
cd build | ||
|
||
cmake -DAMReX_ROOT=${AMREX_ROOT} .. | ||
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
#!/bin/bash -e | ||
. ./setup.sh | ||
spackTestRun ${AMREX_HASH} | ||
./build/Amr/Advection_AmrCore/Advection_AmrCore ./build/Amr/Advection_AmrCore/inputs | ||
./build/Basic/HeatEquation_EX0_C/HeatEquation_EX0_C build/Basic/HeatEquation_EX0_C/inputs | ||
./build/Basic/HelloWorld_C/HelloWorld_C | ||
./build/Basic/main_C/main_C | ||
./build/LinearSolvers/ABecLaplacian_C/ABecLaplacian_C build/LinearSolvers/ABecLaplacian_C/inputs | ||
./build/LinearSolvers/NodalPoisson/NodalPoisson build/LinearSolvers/NodalPoisson/inputs-rt | ||
./build/LinearSolvers/NodeTensorLap/NodeTensorLap |
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,3 +1,20 @@ | ||
#!/bin/bash | ||
. ../../setup.sh | ||
spackLoadUnique amrex | ||
|
||
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 |