tool to access to each core separately

tool to access to each core separately

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,

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
robert-reed (Intel)'s picture

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's picture

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 HillarTwitter: @gastonhillar

Gastón C. Hillar

Login to leave a comment.