Skip to content
Snippets Groups Projects
Commit 74db8fc4 authored by Sebastian Achilles's avatar Sebastian Achilles
Browse files

update 01 MSA hello-world

parent 43074e9c
No related branches found
No related tags found
1 merge request!1add 01 MSA hello-world
EXECS=mpi_hello_world.x EXECS=mpi_hello_world.out
MPICC=mpicc MPICC=mpicc
all: ${EXECS} all: ${EXECS}
mpi_hello_world.x: mpi_hello_world.c mpi_hello_world.out: mpi_hello_world.c
${MPICC} -o mpi_hello_world.x mpi_hello_world.c ${MPICC} -o mpi_hello_world.out mpi_hello_world.c
clean: clean:
rm ${EXECS} *.x || true rm ${EXECS} *.out || true
ml GCC ParaStationMPI ml GCC ParaStationMPI
make make
mv mpi_hello_world.x mpi_hello_world_cluster.x mv mpi_hello_world.out mpi_hello_world_cluster.out
ml GCC ParaStationMPI ml GCC ParaStationMPI
make make
mv mpi_hello_world.x mpi_hello_world_booster.x mv mpi_hello_world.out mpi_hello_world_booster.out
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
#SBATCH --output=slurm-out.%j #SBATCH --output=slurm-out.%j
#SBATCH --error=slurm-err.%j #SBATCH --error=slurm-err.%j
#SBATCH --time=00:15:00 #SBATCH --time=00:15:00
#SBATCH --partition=dc-cpu #SBATCH --partition=dc-cpu-devel
#SBATCH hetjob #SBATCH hetjob
#SBATCH --nodes=1 #SBATCH --nodes=1
#SBATCH --ntasks-per-node=1 #SBATCH --ntasks-per-node=1
#SBATCH --partition=dc-gpu #SBATCH --partition=dc-gpu-devel
srun xenv -P -L GCC -L ParaStationMPI ./mpi_hello_world_cluster.x : xenv -P -L GCC -L ParaStationMPI ./mpi_hello_world_booster.x srun xenv -P -L GCC -L ParaStationMPI ./mpi_hello_world_cluster.out : xenv -P -L GCC -L ParaStationMPI ./mpi_hello_world_booster.out
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
#SBATCH --ntasks-per-node=1 #SBATCH --ntasks-per-node=1
#SBATCH --partition=develbooster #SBATCH --partition=develbooster
srun xenv -P -L GCC -L ParaStationMPI ./mpi_hello_world_cluster.x : xenv -P -L GCC -L ParaStationMPI ./mpi_hello_world_booster.x srun xenv -P -L GCC -L ParaStationMPI ./mpi_hello_world_cluster.out : xenv -P -L GCC -L ParaStationMPI ./mpi_hello_world_booster.out
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment