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
make test
oversubscribes threads
#42443
Comments
prev_num_threads = BLAS.get_num_threads()
BLAS.set_num_threads(1)
# do something
BLAS.set_num_threads(prev_num_threads) Copy from #41785 |
For people running the Julia test suite locally, I think it's fine to have an option to set the number of BLAS threads used during the test suite. Perhaps it could be an optional keyword argument to the However, for CI, I would think that we do want to make sure that we are testing the BLAS multithreaded code paths, so I don't know if it makes sense to disable BLAS multithreading on CI. @staticfloat any thoughts? |
You could set the environmental variable |
I think we want all of the following things:
And so, I think what we need is the following:
|
Due to some combination of Julia threads not knowing about BLAS threads (and possibly something else), I'm seeing
make test
bring my cpu (r5-3600) to a load average of 16. This is likely dramatically slowing down our CI. Could we manually set BLAS threads to 1 for our tests? I think it would resolve the issue, and lead to tests completing faster.The text was updated successfully, but these errors were encountered: