- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Recently i am facing the problem while i run my fortran code as shown below;(I am running the code in Ubuntu 12.04 with parallel studio xe 2013 update4 intel64 from windows 7 using Virtual Machine Player)
OMP: Warning #122: Threads may migrate across all available OS procs (granularity setting too coarse).
Added the following to .bashrc file:
PATH=$PATH:/home/vijay/intel/vtune_amplifier_xe_2013/bin64:/home/vijay/intel/inspector_xe_2013/bin64:/home/vijay/bin/gmsh-2.5.0-Linux/bin:.
source /home/vijay/intel/bin/compilervars.sh intel64
export MALLOC_TRIM_THRESHOLD_=-1
export MALLOC_MMAP_MAX_=0
export NCPUS=8
export OMP_NUM_THREADS=2
export MP_BIND=yes
export KMP_STACKSIZE=16m
export OMP_DYNAMIC=.TRUE.
export WSMP_NUM_THREADS=2
export KMP_AFFINITY=granularity=core,compact,1,0
can anyone help me how to solve this problem...
- Tags:
- Parallel Computing
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
use
export KMP_AFFINITY=scatter
export OMP_NUM_THREADS=2
This will give you 1 thread per core, 2 threads
Jim Dempsey

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page