Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80466262
run_multiGPU_deneb.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Aug 31, 21:28
Size
1 KB
Mime Type
text/x-shellscript
Expires
Mon, Sep 2, 21:28 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
20374496
Attached To
R6678 PHPC Shallow Water Project
run_multiGPU_deneb.sh
View Options
#!/bin/bash
#SBATCH --nodes=1
#SBATCH --time=1:0:0
#SBATCH --partition=gpu
#SBATCH --gres=gpu:1
#SBATCH --qos=gpu_free
#SBATCH --job-name=shallow_water_test
#SBATCH --mail-type=All
if
[
! -d
"../output"
]
then
mkdir ../output
fi
source
/ssoft/spack/bin/slmodules.sh -s x86_E5v2_Mellanox_GPU
module load gcc cuda
module list
EXE
=
compute_parallel_multi_GPU
make clean
make
${
EXE
}
NX
=
2001
NTHREADS
=
256
VERBOSE
=
0
NTMAX
=
0
TEND
=
0.2
AUTHOR
=
1
PROF
=
1
NDEVICES
=
1
touch results.out
rm results.out
echo
"NX/NTHREADS/NTMAX/TIME[s]"
>> results.out
for
NX in 2001
do
for
NTHREADS in 512
do
touch params.in
rm params.in
echo
"$NX $NTHREADS $VERBOSE $NTMAX $TEND $AUTHOR $NDEVICES"
>> params.in
echo
"NX NTHREADS VERBOSE NTMAX TEND AUTHOR(0=GTX/1=Deneb) NDEVICES"
>> params.in
if
[
${
PROF
}
-eq 1
]
then
srun nvprof --export-profile ../output/Deneb_nvprof_nx
${
NX
}
_nthreads
${
NTHREADS
}
_ndevices
${
NDEVICES
}
.nvvp -f ./
${
EXE
}
.exe params.in >> results.out
else
srun ./
${
EXE
}
.exe params.in >> resultsDeneb_nx
${
NX
}
_nthreads
${
NTHREADS
}
_ndevices
${
NDEVICES
}
.out
fi
done
done
module purge
Event Timeline
Log In to Comment