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

Limit numpy to one thread in heat equation #8429

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions test-data/heat_equation/config.ert
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
-- By default, NumPy utilizes multiple threads, which is beneficial for parallelizable computations.
-- However, the heat equation implementation in this case does not benefit from parallel execution within a single realization.
-- When ERT runs multiple realizations, each one by default uses multiple threads for NumPy operations,
-- leading to resource contention and slower overall execution.
-- Setting these thread counts to 1 ensures each realization uses minimal resources,
-- allowing more realizations to run concurrently and significantly speeding up the entire experiment.
SETENV MKL_NUM_THREADS 1
SETENV NUMEXPR_NUM_THREADS 1
SETENV OMP_NUM_THREADS 1

QUEUE_SYSTEM LOCAL
QUEUE_OPTION LOCAL MAX_RUNNING 100

Expand Down