Benchmark / test report

Container name: Singularity.intel-2021a.localimage.sif

test script

#!/bin/bash
#SBATCH -N1
#SBATCH --ntasks-per-node=1
#SBATCH -J plcr-intel-compiler-test

PLCR=${PLCR:-/net/ascratch/groups/plggsoftware/containers}
CONT=${1:-Singularity.intel-2021a.localimage.sif}

echo "PLCR test: $SLURM_JOB_NAME"
echo "PLCR jobid: $SLURM_JOBID"
echo "PLCR path: $PLCR"

echo "Test performed on: "`date`
echo "Testing container: $CONT"
SHA=`dd bs=1M if=$PLCR/images/$CONT 2>/dev/null | sha256sum | cut -d' ' -f1`
echo "Container checksum: $SHA"

export I_MPI_PMI_LIBRARY=$PLCR/local/pmi2/libpmi2.so

cd $TMPDIR

echo "#include <stdio.h>
int main() {
    printf(\"Hello, World!\n\");
    return 0;
}" > hello.c

srun --mpi=pmi2 --cpu-bind=cores singularity -s run -B $I_MPI_PMI_LIBRARY -B $PWD:/host_pwd --pwd /host_pwd $PLCR/images/$CONT icc -no-multibyte-chars -o hello hello.c
RC=$?

./hello

test results

PLCR test: plcr-intel-compiler-test
PLCR jobid: 197118
PLCR path: /net/ascratch/groups/plggsoftware/containers
Test performed on: Thu Jan 13 12:37:43 CET 2022
Testing container: Singularity.intel-2021a.localimage.sif
Container checksum: d495b7a0613c2e7052b1bafc1cc5acd7a1ca12f950a8ac4c56fdd4045724b354
Hello, World!