Intel® Moderncode for Parallel Architectures
Support for developing parallel programming applications on Intel® Architecture.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646

tool to access to each core separately

dounia89
Beginner
86 Views
Dear all,

i have a computer intel core2duo and i want to test an application on one core separately. Does intel have some tools to access to each core separately?

Thanks,
0 Kudos
2 Replies
robert-reed
Valued Contributor II
86 Views
It all depends on what you mean by "separately." The operating system has some control over scheduling activities on the available cores, but typically when testing applications on less than the available machine, developers look to the threading model library for such facilities, whether it's controlling the number of available "cores" (or more generally, hardware threads) in OpenMP through the omp_set_num_threads() call or the Intel Threading Building Blocks task_scheduler_init object (which can be used to set the thread pool size), or down to the level of setting specific thread affinities for particular HW threads, such as with thepthread affinity interface.
gaston-hillar
Black Belt
86 Views
Hey dounia89,
If you don't want to make changes to an existing application, you can set the processor affinity for a process. Of course, this solution applies when you want to run some tests. Then, you can create code according to your needs.
You can use code to set the processor affinity or you can use the tools offered by the operating system to control which cores the process will be allowed to execute on.
In Windows 7, you can go to the Process in Task Manager, right-click on its name, select Set Affinity... and activate the checkboxes for the desired cores.
You have to check how each core number maps to the available logical cores, physical cores and the different physical microprocessors.
In Windows, you can use the CoreInfo utility. I've written an article a few months ago "Coreinfo v2.0: A Simple Utility to Understand the Manycore Complexity in Windows." This article might help you.
Hope this information helps.
Cheers,
You can set the processor affinity for each process.You can use code to set the processor affinity or you can use the tools offered by the operating system to control which cores the process will be allowed to execute on.In Windows 7, you can go to the Process in Task Manager, right-click on its name, select Set Affinity... and activate the checkboxes for the desired cores.You have to check how each core number maps to the available logical cores, physical cores and the different physical microprocessors.In Windows, you can use the CoreInfo utility. I've written an article a few months ago "Coreinfo v2.0: A Simple Utility to Understand the Manycore Complexity in Windows." This article might help you.Hope this information helps.Cheers,You can set the processor affinity for each process.
Cheers,
Gaston Hillar
Twitter: @gastonhillar
Reply