Skip to content

Commit

Permalink
Limit numpy to one thread in heat equation
Browse files Browse the repository at this point in the history
  • Loading branch information
dafeda committed Aug 9, 2024
1 parent e546895 commit 4ba38ef
Showing 1 changed file with 10 additions and 0 deletions.
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

0 comments on commit 4ba38ef

Please sign in to comment.