Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set OMP_NUM_THREADS for calculation kernels #42

Closed
achimnol opened this issue Mar 27, 2017 · 0 comments
Closed

Set OMP_NUM_THREADS for calculation kernels #42

achimnol opened this issue Mar 27, 2017 · 0 comments
Assignees
Labels

Comments

@achimnol
Copy link
Member

achimnol commented Mar 27, 2017

Several code examples (e.g., this one) using TensorFlow crash due to thread limits imposed by our jail.

terminate called after throwing an instance of 'std::system_error'
  what():  Operation not permitted

The root cause is libeigen (a C++ matrix calculation library) used by TensorFlow which reads OMP_NUM_THREADS environment variable to initialize its thread pool.

ref) http://eigen.tuxfamily.org/dox/TopicMultiThreading.html

@achimnol achimnol added the bug label Mar 27, 2017
@achimnol achimnol self-assigned this Mar 27, 2017
achimnol added a commit that referenced this issue Mar 28, 2017
 * Also add OMP_NUM_THREADS to core-count envvars set by Sorna.
@achimnol achimnol closed this as completed Sep 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant