gprof's output gmon.out not appearing when cancelling slurm job before its finish

81 Views Asked by At

I am profiling a Fortran code with gprof. I run this code on a cluster, where I request 24 cores from 1 node.

The job is submitted via slurm. The command to run the code, inside the submission.sh I send via sbatch submission.sh is srun.

My question is why if I scancel the job after 10 minutes (say), i.e. without the job to exit normally (i.e. without the job to finish), there is no gmon.out ? If I in the submission.sh I ask the job to run only for a duration of 3 minutes, and the job goes through the 3 minutes fine (even if the .f code does not reach its end), the gmon.out appears.

Is there an explanation for this?

I am compiling with ifort and I include the flag -pg.

Thank you!

0

There are 0 best solutions below