Example of job script for Marconi SKL:
#!/bin/bash
#SBATCH -N 2
#SBATCH --ntasks-per-node=48
#SBATCH --time=12:00:00
#SBATCH --mem=182000
#SBATCH --partition=skl_usr_prod
#SBATCH --account=<account_no>
# load selfie:
module load autoload selfie/1.0.3
# to profile your code with selfie add selfie.so to the LD_PRELOAD
# environment variable:
export LD_PRELOAD=${SELFIE_HOME}/lib/selfie.so hostname
# define a custom configuration file different from default
# $SELFIE_HOME/etc/selfie.conf
#
# to profile the code add the following:
# SLURM_PROCID when using SLURM for launching MPI jobs
# OMPI_COMM_WORLD_RANK for OpenMPI
# PMI_RANK for IntelMPI
export SELFIE_CONFIGFILE=${HOME}/myselfie.conf
# set SELFIE_OUTPUTFILE with a filename:
export SELFIE_OUTPUTFILE=${CINECA_SCRATCH}/selfie.out
# or set a directory for storing selFIe output:
export SELFIE_OUTPUTDIR=${CINECA_SCRATCH}/selfie_outdir
srun -n 96 ./myexec