-
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
Yuuichi Asahi
committed
Aug 6, 2023
1 parent
915d535
commit 0eb71e8
Showing
2 changed files
with
96 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,45 @@ | ||
#!/bin/bash | ||
#PJM -L "node=1" | ||
#PJM -L "rscgrp=regular-a" | ||
#PJM -L "elapse=10:00" | ||
#PJM -s | ||
#PJM -g jh220031a | ||
#PJM --mpi proc=1 | ||
|
||
. /etc/profile.d/modules.sh # Initialize module command | ||
|
||
module purge | ||
|
||
# Load spack | ||
export HOME=/work/jh220031a/i18048 | ||
. $HOME/spack/share/spack/setup-env.sh | ||
|
||
spack load [email protected] | ||
spack load [email protected]%[email protected] | ||
module load /work/04/jh220031a/i18048/lib/nvidia/hpc_sdk23.3/modulefiles/nvhpc/23.3 | ||
module list | ||
|
||
# Need GPUs to build the code appropriately | ||
# So compile inside a batch job, wherein GPUs are visible | ||
if [ ! -d "../build" ] | ||
then | ||
cd ../ | ||
rm -rf build | ||
mkdir build && cd build | ||
cmake -DCMAKE_CXX_COMPILER=nvc++ -DBACKEND=CUDA .. | ||
cmake --build . -j 8 | ||
cd ../wk/ | ||
fi | ||
|
||
export UCX_MEMTYPE_CACHE=n | ||
export UCX_IB_GPU_DIRECT_RDMA=no | ||
export UCX_RNDV_FRAG_MEM_TYPE=cuda | ||
|
||
echo "stdpar" | ||
../build/mini-apps/heat3d/stdpar/heat3d-stdpar --nx 512 --ny 512 --nz 512 --nbiter 1000 --freq_diag 0 | ||
|
||
echo "thrust" | ||
../build/mini-apps/heat3d/thrust/heat3d-thrust --nx 512 --ny 512 --nz 512 --nbiter 1000 --freq_diag 0 | ||
|
||
echo "executors" | ||
../build/mini-apps/heat3d/executors/heat3d-executors --nx 512 --ny 512 --nz 512 --nbiter 1000 --freq_diag 0 |
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,51 @@ | ||
#!/bin/bash | ||
#PJM -L "node=1" | ||
#PJM -L "rscgrp=regular-a" | ||
#PJM -L "elapse=20:00" | ||
#PJM -s | ||
#PJM -g jh220031a | ||
#PJM --mpi proc=1 | ||
|
||
. /etc/profile.d/modules.sh # Initialize module command | ||
|
||
module purge | ||
|
||
# Load spack | ||
export HOME=/work/jh220031a/i18048 | ||
. $HOME/spack/share/spack/setup-env.sh | ||
|
||
spack load [email protected] | ||
spack load [email protected]%[email protected] | ||
module load /work/04/jh220031a/i18048/lib/nvidia/hpc_sdk23.3/modulefiles/nvhpc/23.3 | ||
module list | ||
|
||
# Need GPUs to build the code appropriately | ||
# So compile inside a batch job, wherein GPUs are visible | ||
if [ ! -d "../build" ] | ||
then | ||
cd ../ | ||
rm -rf build | ||
mkdir build && cd build | ||
cmake -DCMAKE_CXX_COMPILER=nvc++ -DBACKEND=OPENMP .. | ||
cmake --build . -j 8 | ||
cd ../wk/ | ||
fi | ||
|
||
export UCX_MEMTYPE_CACHE=n | ||
export UCX_IB_GPU_DIRECT_RDMA=no | ||
export OMP_NUM_THREADS=36 | ||
export OMP_PROC_BIND=true | ||
|
||
numactl -H | ||
|
||
echo "stdpar" | ||
numactl --physcpubind=+0-35 ../build/mini-apps/heat3d/stdpar/heat3d-stdpar --nx 512 --ny 512 --nz 512 --nbiter 1000 --freq_diag 0 | ||
#../build/mini-apps/heat3d/stdpar/heat3d-stdpar --nx 512 --ny 512 --nz 512 --nbiter 1000 --freq_diag 0 | ||
|
||
echo "thrust" | ||
numactl --physcpubind=+0-35 ../build/mini-apps/heat3d/thrust/heat3d-thrust --nx 512 --ny 512 --nz 512 --nbiter 1000 --freq_diag 0 | ||
#../build/mini-apps/heat3d/thrust/heat3d-thrust --nx 512 --ny 512 --nz 512 --nbiter 1000 --freq_diag 0 | ||
|
||
echo "executors" | ||
numactl --physcpubind=+0-35 ../build/mini-apps/heat3d/executors/heat3d-executors --nx 512 --ny 512 --nz 512 --nbiter 1000 --freq_diag 0 | ||
#numactl --cpunodebind=0 --membind=0 ../build/mini-apps/heat3d/executors/heat3d-executors --nx 512 --ny 512 --nz 512 --nbiter 1000 --freq_diag 0 |