Hello,
I'm trying to use the USER-OMP package and found that OpenMP is active on the first physical MPI node only, but not on remote MPI nodes, or rather, the CPU usage hovers at or only slightly above 100% where I expect 300%. See below for an example, testing with examples/shear/in.shear .
I set OMP_NUM_THREADS and pass it via mpirun -x. I verified that remote MPI processes see this value.
I'm using: distro EL5.7, Intel compilers 11.1.073, OpenMPI-1.4.4
With best regards,
Michael
---- Compilation -------------------------------------------
packages=(
no-asphere
yes-class2
yes-colloid
no-dipole
no-fld
no-gpu
no-granular
no-kim
yes-kspace
yes-manybody
yes-mc
yes-meam
yes-molecule
no-opt
no-peri
yes-poems
yes-reax
yes-replica
no-shock
no-srd
no-xtc
no-user-awpmd
no-user-cg-cmm
no-user-cuda
no-user-eff
no-user-ewaldn
no-user-sph
yes-user-atc
yes-user-misc
yes-user-reaxc
# must come last -- doc/Section_accelerate.html
yes-user-omp
)
make -C src ${packages[@]}
model_opt="-mcmodel=medium"
make -C lib/atc -j 6 -f Makefile.icc CC="mpicc $model_opt"
# awpmd
# cuda
# gpu
# kim
# linalg - not needed if we use BLAS/LAPACK
make -C lib/meam -j 1 -f Makefile.ifort F90="ifort $model_opt"
make -C lib/poems -j 6 -f Makefile.icc CC="icc $model_opt"
make -C lib/reax -j 6 -f Makefile.ifort F90="ifort $model_opt"
# NB: it's non-canonically "CCFLAGS", not "CFLAGS"
make -C src -j 1 \
CC="mpic++" \
CCFLAGS="$model_opt -openmp -O2 -funroll-loops -fstrict-aliasing" \
LINKFLAGS="$model_opt -openmp" \
LINK=$CC \
$ARCH
make -C tools all