Commit 0d856417 authored by Christopher Werner's avatar Christopher Werner
Browse files

addition of starter job script

parent 162669bd
#!/bin/bash
#SBATCH --partition=DevQ
#SBATCH --partition=CourseDevQ
#SBATCH --reservation=SOHPCCourse
#SBATCH --nodes=1
#SBATCH --time=00:05:00
#SBATCH --job-name=mpi_hello
#SBATCH --output=mpi_hello.log
#SBATCH --account=#TODO#
#SBATCH --account=course
# Set number of processes
nproc=4
# Compile and run C version
mpicc -o hello_c.o hello.c
#####
mpirun -n $nproc ./hello_c.o
# TODO: Remember to load the correct module!
# Compile and run Fortran version
#mpif90 -o hello_f90.o hello.f90
#mpirun -n $nproc ./hello_f90.o
# TODO: Compile and run C version using MPI compiler
"MPI C compile" -o hello_c.o hello.c
"MPI C run" -n $nproc ./hello_c.o
# TODO: Compile and run Fortran version
"MPI Fortran compile" -o hello_f90.o hello.f90
"MPI Fortran run" -n $nproc ./hello_f90.o
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment