-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker: More Examples, NGC & Benchmark
OpenMPI: Use 2.1.2 Multi-Rank MPI support and thus multi-GPU support requires for in-node communication a BTL such as "sm" which was replaced with "vader" in OpenMPI 3.0.0. "vader" requires CMA support from the kernel which seems to be something that is not working in a docker container. We therefore switch back to an older release (pre-3.0) of OpenMPI that still has the (slower) "sm" transport. Build for SM_70 (V100) Docker Readme: MPI BTL shared Mem Overwrite exising output with tbg -f Configurable output directory and print to user. Use non-ISAAC examples for now. Add _live LWFA examples for later testing of ISAAC.
- Loading branch information
Showing
18 changed files
with
623 additions
and
35 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
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
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,42 @@ | ||
#!/bin/bash -l | ||
# | ||
|
||
# output directory from startup arguments | ||
output_dir=${1:-"/tmp/foil4_001/"} | ||
|
||
if [ "$output_dir" = "-h" ] || [ "$output_dir" = "--help" ] | ||
then | ||
echo "Usage:" | ||
echo " $0 [output_directory]" | ||
fi | ||
|
||
#isaac & | ||
#server_id=$! | ||
|
||
echo "" | ||
#echo "Let's watch a laser-plasma movie!" | ||
#echo " http://laser.plasma.ninja/ngc/interface.htm" | ||
echo "Let's create some openPMD HDF5 files from a novel" | ||
echo "plasma ion accelerator driven by a short, intense" | ||
echo "laser pulse!" | ||
echo "" | ||
|
||
# wait until server is up | ||
sleep 5 | ||
|
||
# start PIConGPU | ||
cd /opt/picInputs/foil | ||
tbg \ | ||
-f \ | ||
-s "bash -l" \ | ||
-c etc/picongpu/4.cfg \ | ||
-t etc/picongpu/bash/mpirun.tpl \ | ||
$output_dir | ||
|
||
# kill the isaac server after tbg returns | ||
#kill $server_id | ||
|
||
echo "" | ||
echo "Simulation finished! See the created output in:" | ||
echo " $output_dir" | ||
echo "" |
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,42 @@ | ||
#!/bin/bash -l | ||
# | ||
|
||
# output directory from startup arguments | ||
output_dir=${1:-"/tmp/foil8_001/"} | ||
|
||
if [ "$output_dir" = "-h" ] || [ "$output_dir" = "--help" ] | ||
then | ||
echo "Usage:" | ||
echo " $0 [output_directory]" | ||
fi | ||
|
||
#isaac & | ||
#server_id=$! | ||
|
||
echo "" | ||
#echo "Let's watch a laser-plasma movie!" | ||
#echo " http://laser.plasma.ninja/ngc/interface.htm" | ||
echo "Let's create some openPMD HDF5 files from a novel" | ||
echo "plasma ion accelerator driven by a short, intense" | ||
echo "laser pulse!" | ||
echo "" | ||
|
||
# wait until server is up | ||
sleep 5 | ||
|
||
# start PIConGPU | ||
cd /opt/picInputs/foil | ||
tbg \ | ||
-f \ | ||
-s "bash -l" \ | ||
-c etc/picongpu/8.cfg \ | ||
-t etc/picongpu/bash/mpirun.tpl \ | ||
$output_dir | ||
|
||
# kill the isaac server after tbg returns | ||
#kill $server_id | ||
|
||
echo "" | ||
echo "Simulation finished! See the created output in:" | ||
echo " $output_dir" | ||
echo "" |
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,30 @@ | ||
#!/bin/bash -l | ||
# | ||
|
||
# output directory from startup arguments | ||
output_dir=${1:-"/tmp/khi1_001/"} | ||
|
||
if [ "$output_dir" = "-h" ] || [ "$output_dir" = "--help" ] | ||
then | ||
echo "Usage:" | ||
echo " $0 [output_directory]" | ||
fi | ||
|
||
echo "" | ||
echo "Running KHI Benchmark on 1 GPUs..." | ||
echo "" | ||
|
||
|
||
# start PIConGPU | ||
cd /opt/picInputs/khi | ||
/usr/bin/time -f "%e" tbg \ | ||
-f \ | ||
-s "bash -l" \ | ||
-c etc/picongpu/1_bench.cfg \ | ||
-t etc/picongpu/bash/mpirun.tpl \ | ||
$output_dir | ||
|
||
echo "" | ||
echo "Simulation finished! See the created output in:" | ||
echo " $output_dir" | ||
echo "" |
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,30 @@ | ||
#!/bin/bash -l | ||
# | ||
|
||
# output directory from startup arguments | ||
output_dir=${1:-"/tmp/khi4_001/"} | ||
|
||
if [ "$output_dir" = "-h" ] || [ "$output_dir" = "--help" ] | ||
then | ||
echo "Usage:" | ||
echo " $0 [output_directory]" | ||
fi | ||
|
||
echo "" | ||
echo "Running KHI Benchmark on 4 GPUs..." | ||
echo "" | ||
|
||
|
||
# start PIConGPU | ||
cd /opt/picInputs/khi | ||
/usr/bin/time -f "%e" tbg \ | ||
-f \ | ||
-s "bash -l" \ | ||
-c etc/picongpu/4_bench.cfg \ | ||
-t etc/picongpu/bash/mpirun.tpl \ | ||
$output_dir | ||
|
||
echo "" | ||
echo "Simulation finished! See the created output in:" | ||
echo " $output_dir" | ||
echo "" |
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,30 @@ | ||
#!/bin/bash -l | ||
# | ||
|
||
# output directory from startup arguments | ||
output_dir=${1:-"/tmp/khi8_001/"} | ||
|
||
if [ "$output_dir" = "-h" ] || [ "$output_dir" = "--help" ] | ||
then | ||
echo "Usage:" | ||
echo " $0 [output_directory]" | ||
fi | ||
|
||
echo "" | ||
echo "Running KHI Benchmark on 8 GPUs..." | ||
echo "" | ||
|
||
|
||
# start PIConGPU | ||
cd /opt/picInputs/khi | ||
/usr/bin/time -f "%e" tbg \ | ||
-f \ | ||
-s "bash -l" \ | ||
-c etc/picongpu/8_bench.cfg \ | ||
-t etc/picongpu/bash/mpirun.tpl \ | ||
$output_dir | ||
|
||
echo "" | ||
echo "Simulation finished! See the created output in:" | ||
echo " $output_dir" | ||
echo "" |
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,42 @@ | ||
#!/bin/bash -l | ||
# | ||
|
||
# output directory from startup arguments | ||
output_dir=${1:-"/tmp/lwfa4_001/"} | ||
|
||
if [ "$output_dir" = "-h" ] || [ "$output_dir" = "--help" ] | ||
then | ||
echo "Usage:" | ||
echo " $0 [output_directory]" | ||
fi | ||
|
||
#isaac & | ||
#server_id=$! | ||
|
||
echo "" | ||
#echo "Let's watch a laser-plasma movie!" | ||
#echo " http://laser.plasma.ninja/ngc/interface.htm" | ||
echo "Let's create some output files from a" | ||
echo "laser wakefield (electron) accelerator (LWFA)" | ||
echo "driven by a short, intense laser pulse!" | ||
echo "" | ||
|
||
# wait until server is up | ||
sleep 5 | ||
|
||
# start PIConGPU | ||
cd /opt/picInputs/lwfa | ||
tbg \ | ||
-f \ | ||
-s "bash -l" \ | ||
-c etc/picongpu/4.cfg \ | ||
-t etc/picongpu/bash/mpirun.tpl \ | ||
$output_dir | ||
|
||
# kill the isaac server after tbg returns | ||
#kill $server_id | ||
|
||
echo "" | ||
echo "Simulation finished! See the created output in:" | ||
echo " $output_dir" | ||
echo "" |
Oops, something went wrong.