cxxnet icon indicating copy to clipboard operation
cxxnet copied to clipboard

is there a way to explicit set the # of thread to use on CPU

Open mrfipwa opened this issue 10 years ago • 1 comments

it seems cxxnet will use as many threads as available on CPU. it maybe the MKL thing. I noticed that using many threads does not translate to speed up, and it appears to cause it to actually run slower. is there a way to explicit set the # of threads to use so that I can experiment to see if that is actualy the case

mrfipwa avatar Apr 01 '15 06:04 mrfipwa

MKL will use all threads. If you want to explicit set, you can build with single thread openblas/cblas, then set dev=cpu:0,1,2,3 indicate to use first 4 cores.

antinucleon avatar Apr 02 '15 19:04 antinucleon