Page 1 of 1

Restrict the usage of cores?

PostPosted: Fri Jul 18, 2014 1:35 pm
by baseballguy
Hello,

Is there a way to "turn off" or restrict the number of cores that a program is using. I was able to do that for some of Parallella's programs like Mandelbrot and aobench by changing the source code. However, I want to limit the number of cores before running PARSEC benchmarks. However, I don't think that these benchmarks would have code that would allow to change the number of cores.

Is there like a single program that is able to turn the cores on and off?

Thanks

Re: Restrict the usage of cores?

PostPosted: Sat Jul 19, 2014 3:55 am
by notzed
The code itself has to be written to handle different number of cores.

It may be written in a way that it is flexible and can be determined at runtime or compile time, or it may be hard-coded for a specific core layout.

If you disabled certain cores (you could copy and edit the .hdf file it is using and hide some cores from the sdk) it will just crash any programs not written with that in mind (or they will refuse to run).