Skip to content
This repository has been archived by the owner on May 24, 2018. It is now read-only.

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

Open
mrfipwa opened this issue Apr 1, 2015 · 1 comment
Open

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

mrfipwa opened this issue Apr 1, 2015 · 1 comment

Comments

@mrfipwa
Copy link

mrfipwa commented Apr 1, 2015

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

@antinucleon
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants