Skip to content

Commit

Permalink
Merge pull request #658 from laraPPr/update_examples
Browse files Browse the repository at this point in the history
Update modules in examples
  • Loading branch information
boegel authored Aug 5, 2024
2 parents 6754874 + e1c0f30 commit 187d271
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ cd $PBS_O_WORKDIR
# load the environment

module purge
module load intel
module load foss

mpirun ./mpihello
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#PBS -l walltime=5:0:0
#PBS -l nodes=1:ppn=quarter:gpus=1

module load TensorFlow/2.6.0-foss-2021a-CUDA-11.3.1
module load TensorFlow/2.11.0-foss-2022a-CUDA-11.7.0

cd $PBS_O_WORKDIR
python example.py
2 changes: 1 addition & 1 deletion intro-HPC/examples/Job-script-examples/multi_core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#PBS -N mpi_hello ## job name
#PBS -l nodes=2:ppn=all ## 2 nodes, all cores per node
#PBS -l walltime=2:00:00 ## max. 2h of wall time
module load intel/2017b
module load foss/2023a
module load vsc-mympirun ## We don't use a version here, this is on purpose
# go to working directory, compile and run MPI hello world
cd $PBS_O_WORKDIR
Expand Down
2 changes: 1 addition & 1 deletion intro-HPC/examples/Job-script-examples/single_core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#PBS -N count_example ## job name
#PBS -l nodes=1:ppn=1 ## single-node job, single core
#PBS -l walltime=2:00:00 ## max. 2h of wall time
module load Python/3.6.4-intel-2018a
module load Python/3.11.3-GCCcore-12.3.0
# copy input data from location where job was submitted from
cp $PBS_O_WORKDIR/input.txt $TMPDIR
# go to temporary working directory (on local disk) & run
Expand Down
2 changes: 1 addition & 1 deletion intro-HPC/examples/MATLAB/jobscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#

# make sure the MATLAB version matches with the one used to compile the MATLAB program!
module load MATLAB/2018a
module load MATLAB/2022b-r5

# use temporary directory (not $HOME) for (mostly useless) MATLAB log files
# subdir in $TMPDIR (if defined, or /tmp otherwise)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ cd $PBS_O_WORKDIR

# load the environment

module load intel
module load foss

mpirun ./mpi_hello
4 changes: 2 additions & 2 deletions intro-HPC/examples/OpenFOAM/OpenFOAM_damBreak.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#PBS -l walltime=1:0:0
#PBS -l nodes=1:ppn=4
# check for more recent OpenFOAM modules with 'module avail OpenFOAM'
module load OpenFOAM/6-intel-2018a
module load OpenFOAM/11-foss-2023a
source $FOAM_BASH
# purposely not specifying a particular version to use most recent mympirun
module load vsc-mympirun
Expand All @@ -15,7 +15,7 @@ export MYMPIRUN_VARIABLESPREFIX=WM_PROJECT,FOAM,MPI
export WORKDIR=$VSC_SCRATCH_NODE/$PBS_JOBID # for single-node jobs
mkdir -p $WORKDIR
# damBreak tutorial, see also https://cfd.direct/openfoam/user-guide/dambreak
cp -r $FOAM_TUTORIALS/multiphase/interFoam/laminar/damBreak/damBreak $WORKDIR
cp -r $FOAM_TUTORIALS/incompressibleVoF/damBreakLaminar/damBreak $WORKDIR
cd $WORKDIR/damBreak
echo "working directory: $PWD"
# pre-processing: generate mesh
Expand Down
2 changes: 1 addition & 1 deletion intro-HPC/examples/Program-examples/04_MPI_C/mpihello.pbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ cd $PBS_O_WORKDIR
# load the environment

module purge
module load intel
module load foss

mpirun ./mpihello

0 comments on commit 187d271

Please sign in to comment.