|
[Sponsors] |
May 18, 2020, 23:20 |
compiler does not utilize all CPU?
|
#1 |
New Member
Anh Dinh Le
Join Date: Apr 2020
Posts: 24
Rep Power: 6 |
Dear experts,
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 (fortran code with intel fortran compiler in linux) 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, and how to know that the code running in 1cpu or 2 cpus? 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 Last edited by AnhDL; May 19, 2020 at 01:29. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.com] Installing on Ubuntu 18.04 | samiam1000 | OpenFOAM Installation | 11 | April 27, 2020 01:01 |
[OpenFOAM.com] Issue configuring ./makeParaView - Ubuntu 16.04 | bjdarrer | OpenFOAM Installation | 2 | April 20, 2020 14:50 |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 06:36 |
Star cd es-ice solver error | ernarasimman | STAR-CD | 2 | September 12, 2014 01:01 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 14:43 |