Skip to content

Instantly share code, notes, and snippets.

@ax3l
Created May 11, 2017 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ax3l/370f2d8e913ed74b09f97cfa6e86f50d to your computer and use it in GitHub Desktop.
Save ax3l/370f2d8e913ed74b09f97cfa6e86f50d to your computer and use it in GitHub Desktop.
An mpirun template for PIConGPU and TBG on 1 GPU Ubuntu 16.04
#!/usr/bin/env bash
# Copyright 2017 Axel Huebl
#
# This file is part of PIConGPU 0.2.4
#
# 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/>.
# 1 GPU per node
.TBG_gpusPerNode=1
TBG_coresPerNode=1
TBG_nodes=1
echo 'Running program...'
cd !TBG_dstPath
mkdir simOutput 2> /dev/null
cd simOutput
mpirun --mca mpi_leave_pinned 0 -x LD_LIBRARY_PATH -npernode !TBG_gpusPerNode -n !TBG_tasks !TBG_dstPath/picongpu/bin/picongpu !TBG_programParams | tee output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment