Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Specify what core (s) to use

Started by Magnum, February 12, 2013, 08:15:49 AM

Previous topic - Next topic


This program lets you modify an .exe to use specific cores to run a program. Attachment also.

From what I read, the first core is generally the fastest.

Info is a little scarce on what the command line options mean, but I found this.

I could not find any code references for it in the forums.

  0    0x1
  1    0x2
  2    0x4
  3    0x8
  4    0x10
  5    0x20
  6    0x40
  7    0x80
  8    0x100

So if you wanted to set C:\Test\Dummy.exe to use the second CPU(CPU1) it would look like this:
imagecfg -a 0x2 C:\Test\Dummy.exe

So would assigning more than one core look like this?
imagecfg -a 0x1 0x2 0x4 0x8 C:\Test\Dummy.exe
Take care,



i would imagine you OR them together

not sure how the program works, but if you specify cores that don't exist, SetProcessAffinityMask does nothing

the program could, however, use GetProcessAffinityMask, first
then AND the cores you specify with those that are available, creating a valid mask