- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
System detail:
Computer we are using is an Intel i7-2600. It is 4 core CPU with hyper thread which give 8 virtual cores. OS is Windows 7.
Issue:
We have an image processing process, We like to run it in upper 6 cores and leave lower 2 cores for device control. I use setAffinity to set image processing process to upper 6 cores. To test the affinity, I use Windows task manager to monitor which core is used. It works as I expected that 6 cores busy when I use C++ code in my algorithm. However when I opptimize my code to use IPP library, it start to use all 8 cores; and ignore my Cpu affinity setting. Is there any way I can set CPU affinity to IPP library? Any help is appreciated.
I have test ippSetAffinity. It does not make difference.
Yang
Abbott Point of Care
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yang,
The Intel IPP functions are threaded with OpenMP. The affinity setting in the IPP will also impact the IPP. Please check if the following environment setting could work for you:
KMP_AFFINITY=explicit,proclist=[1-6:1],granularity=fine
You can check the following article regarding the these setting
http://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/2011Update/fortran/lin/optaps/common/optaps_openmp_thread_affinity.htm
Thanks,
Chao
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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