-
Notifications
You must be signed in to change notification settings - Fork 226
Profile: Draco (MPCDF) #2308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
psychocoderHPC
merged 6 commits into
ComputationalRadiationPhysics:dev
from
ax3l:doc-mpcdf
Oct 25, 2017
Merged
Profile: Draco (MPCDF) #2308
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
f049f3a
Profile: Draco (MPCDF)
ax3l edb5149
add alias `getNode`
psychocoderHPC 09611c0
add `tbg` template for draco-mpcdf
psychocoderHPC 83c67f3
Add more LD_LIBRARY_PATH Hints
ax3l 79e6b56
Draco (MPCDF): Add to Manual
ax3l 50b78c4
update `picongpu.profile.examples`
psychocoderHPC File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,91 @@ | ||
| #!/usr/bin/env bash | ||
| # Copyright 2013-2017 Axel Huebl, Richard Pausch, Rene Widera | ||
| # | ||
| # This file is part of PIConGPU. | ||
| # | ||
| # PIConGPU is free software: you can redistribute it and/or modify | ||
| # it under the terms of the GNU General Public License as published by | ||
| # the Free Software Foundation, either version 3 of the License, or | ||
| # (at your option) any later version. | ||
| # | ||
| # PIConGPU is distributed in the hope that it will be useful, | ||
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| # GNU General Public License for more details. | ||
| # | ||
| # You should have received a copy of the GNU General Public License | ||
| # along with PIConGPU. | ||
| # If not, see <http://www.gnu.org/licenses/>. | ||
| # | ||
|
|
||
|
|
||
| # PIConGPU batch script for taurus' SLURM batch system | ||
|
|
||
| #SBATCH --partition=!TBG_queue | ||
| #SBATCH --time=!TBG_wallTime | ||
| # Sets batch job's name | ||
| #SBATCH --job-name=!TBG_jobName | ||
| #SBATCH --nodes=!TBG_nodes | ||
| #SBATCH --ntasks=!TBG_tasks | ||
| #SBATCH --mincpus=!TBG_mpiTasksPerNode | ||
| #SBATCH --cpus-per-task=!TBG_coresPerGPU | ||
| #SBATCH --exclusive | ||
| # send me mails on BEGIN, END, FAIL, REQUEUE, ALL, | ||
| # TIME_LIMIT, TIME_LIMIT_90, TIME_LIMIT_80 and/or TIME_LIMIT_50 | ||
| #SBATCH --mail-type=!TBG_mailSettings | ||
| #SBATCH --mail-user=!TBG_mailAddress | ||
| #SBATCH --workdir=!TBG_dstPath | ||
|
|
||
| #SBATCH -o stdout | ||
| #SBATCH -e stderr | ||
|
|
||
|
|
||
| ## calculations will be performed by tbg ## | ||
| .TBG_queue="general" | ||
|
|
||
| # settings that can be controlled by environment variables before submit | ||
| .TBG_mailSettings=${MY_MAILNOTIFY:-"ALL"} | ||
| .TBG_mailAddress=${MY_MAIL:-"someone@example.com"} | ||
| .TBG_author=${MY_NAME:+--author \"${MY_NAME}\"} | ||
| .TBG_profile=${PIC_PROFILE:-"~/picongpu.profile"} | ||
|
|
||
| # 1 gpus per node | ||
| .TBG_gpusPerNode=2 | ||
|
|
||
| # number of cores to block per GPU - we got 6 cpus per gpu | ||
| # and we will be accounted 6 CPUs per GPU anyway | ||
| .TBG_coresPerGPU=32 | ||
|
|
||
| # We only start 2 MPI task per GPU | ||
| .TBG_mpiTasksPerNode="!TBG_gpusPerNode" | ||
|
|
||
| # use ceil to caculate nodes | ||
| .TBG_nodes="$((( TBG_tasks + TBG_gpusPerNode -1 ) / TBG_gpusPerNode))" | ||
|
|
||
| ## end calculations ## | ||
|
|
||
| echo 'Running program...' | ||
|
|
||
| cd !TBG_dstPath | ||
|
|
||
| export MODULES_NO_OUTPUT=1 | ||
| source !TBG_profile | ||
| if [ $? -ne 0 ] ; then | ||
| echo "Error: PIConGPU environment profile under \"!TBG_profile\" not found!" | ||
| exit 1 | ||
| fi | ||
| unset MODULES_NO_OUTPUT | ||
|
|
||
| #set user rights to u=rwx;g=r-x;o=--- | ||
| umask 0027 | ||
|
|
||
| mkdir simOutput 2> /dev/null | ||
| cd simOutput | ||
|
|
||
| #wait that all nodes see ouput folder | ||
| sleep 1 | ||
|
|
||
| # Run PIConGPU | ||
| srun -K1 !TBG_dstPath/tbg/cpuNumaStarter.sh !TBG_dstPath/input/bin/picongpu !TBG_author !TBG_programParams | tee output | ||
|
|
||
|
|
||
This file contains hidden or 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,66 @@ | ||
| # User Information ############################################################ | ||
| # - edit those lines! | ||
| # - automatically add your name and contact to output file meta data | ||
| # - send me a mail on batch system jobs: BEGIN, END, FAIL, REQUEUE, ALL, | ||
| # TIME_LIMIT, TIME_LIMIT_90, TIME_LIMIT_80 and/or TIME_LIMIT_50 | ||
| export MY_MAILNOTIFY="ALL" | ||
| export MY_MAIL="someone@example.com" | ||
| export MY_NAME="$(whoami) <$MY_MAIL>" | ||
|
|
||
| # Name and Path of this Script ################################################ | ||
| # - do NOT change this line! | ||
| export PIC_PROFILE=$(cd $(dirname $BASH_SOURCE) && pwd)"/"$(basename $BASH_SOURCE) | ||
|
|
||
| # Text Editor for Tools ####################################################### | ||
| # - edit those lines! | ||
| # - examples: "nano", "vim", "emacs -nw", "vi" or without terminal: "gedit" | ||
| #export EDITOR="nano" | ||
|
|
||
| # General Modules ############################################################# | ||
| # | ||
| module purge | ||
|
|
||
| module load git/2.14 | ||
| module load gcc/6.3 | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. to do: add export CXX=$(which g++)
export CC=$(which gcc)otherwise the system g++ (4.X) was taken by cmake |
||
| module load cmake/3.7 | ||
| module load boost/gcc/1.64 | ||
| module load impi/2017.3 | ||
| module load hdf5-mpi/gcc/1.8.18 | ||
|
|
||
| # Other Software ############################################################## | ||
| # | ||
| # needs to be compiled by the user | ||
| export PNGWRITER_ROOT=$HOME/lib/pngwriter-0.6.0 | ||
| export SPLASH_ROOT=$HOME/lib/splash-1.6.0 | ||
|
|
||
| export LD_LIBRARY_PATH=$PNGWRITER_ROOT/lib:$LD_LIBRARY_PATH | ||
| export LD_LIBRARY_PATH=$SPLASH_ROOT/lib:$LD_LIBRARY_PATH | ||
| export LD_LIBRARY_PATH=$BOOST_HOME/lib:$LD_LIBRARY_PATH | ||
| export LD_LIBRARY_PATH=$HDF5_HOME/lib:$LD_LIBRARY_PATH | ||
| export LD_LIBRARY_PATH=$I_MPI_ROOT/lib64:$LD_LIBRARY_PATH | ||
|
|
||
| export HDF5_ROOT=$HDF5_HOME | ||
|
|
||
| export CXX=$(which g++) | ||
| export CC=$(which gcc) | ||
|
|
||
| # PIConGPU Helper Variables ################################################### | ||
| # | ||
| export PICSRC=$HOME/src/picongpu | ||
| export PIC_BACKEND="omp2b:haswell" | ||
|
|
||
| export PATH=$PATH:$PICSRC | ||
| export PATH=$PATH:$PICSRC/src/tools/bin | ||
|
|
||
| export PYTHONPATH=$PICSRC/lib/python:$PYTHONPATH | ||
|
|
||
| # "tbg" default options ####################################################### | ||
| # - SLURM (sbatch) | ||
| # - "normal" queue | ||
| export TBG_SUBMIT="sbatch" | ||
| export TBG_TPLFILE="etc/picongpu/draco-mpcdf/general.tpl" | ||
|
|
||
| # helper tools ################################################################ | ||
|
|
||
| # allocate an interactive shell for one hour | ||
| alias getNode='salloc --time=1:00:00 --nodes=1 --exclusive --ntasks-per-node=2 --cpus-per-task=32 --partition general' | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does not need to be loaded on this cluster?