Hi, I am having trouble running my C code, with minimal parallelization using openmp, that runs fine on my local machine but crashes when running on baobab. Below are additional information. I am not sure if there is an obvious reason for this. I would appreciate your guidance if possible.
Thanks,
- what did you try: Running a C code via slurm and using srun
- what didn’t work: I got a segfault
- what was the expected result: the code runs fine on my laptop using 8 cores
- what was the error message: srun: error: cpu066: task 0: Segmentation fault
- path to the relevant files (logs, sbatch script, etc):
#!/bin/bash
#SBATCH -J BD_all_10p5 #Jobname
#SBATCH -e BD_all_10p5-err_%j.error #Jobname error file
#SBATCH -o BD_all_10p5-out_%j.out #Jobname out file
#SBATCH --cpus-per-task=16 #total number of threads
#SBATCH -t 04-00:00 # Runtime in D-HH:MM
#SBATCH --mem-per-cpu=4000
#SBATCH -p private-dpt-cpu
module load GCCcore/11.2.0 Python/3.9.6
module load GCC/11.2.0 OpenMPI/4.1.1 SciPy-bundle/2021.10
module load GCC/10.2.0 GCC/10.3.0 LAPACK/3.9.1
module load GCC/10.3.0
module load GCC/11.2.0
module load GSL/2.7
export OMP_NUM_THREADS=${SLURM_CPUS_PER_TASK}
srun mydirectory/limFisher 83 116