My PC have two cpu xeon e5-2678v3, 12 cores/24 thread each cpu (total 24core/48 threads) I submitted slurm batch job that request multicores for my code (CFD fortran code with intel fortran compiler in linux) The code run well but it seem that all 48 threads run on only 1 cpu not dual cpu. I checked both serial and openMP run using the same slurm batch job file above; the same result and same calculation speed resulted. Please tell me how to use all 2 CPU to run the code?
The first job file, system run with all 48 threads: *
#!/bin/sh
#PBS -N Ogive
#PBS -o output
#PBS -j oe
#PBS -l ncpus=2
cd <directory>
time ./2D-TFlow2Wall-MCM-HKO
*
The second job file, systems run with 20 threads
*#!/bin/bash
#SBATCH --job-name=testOMP
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=20
#SBATCH --exclusive
#SBATCH --time=0-20:00:00
export OMP_NUM_THREADS=${SLURM_CPUS_PER_TASK}
time ./2D-test*