Skip to content

Commit

Permalink
Examples: Set OMP_NUM_THREADS=2
Browse files Browse the repository at this point in the history
Run examples faster on two cores, of COMPUTE is OMP.
  • Loading branch information
ax3l committed Sep 22, 2022
1 parent 54741c5 commit e603441
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ function(add_impactx_test name input is_mpi is_python analysis_script plot_scrip
if(is_mpi)
set_property(TEST ${name}.run APPEND PROPERTY ENVIRONMENT "OMP_NUM_THREADS=1")
else()
# TODO: Change to 2 after OpenMP support was added #195
set_property(TEST ${name}.run APPEND PROPERTY ENVIRONMENT "OMP_NUM_THREADS=1")
set_property(TEST ${name}.run APPEND PROPERTY ENVIRONMENT "OMP_NUM_THREADS=2")
endif()

# analysis and plots
Expand Down

0 comments on commit e603441

Please sign in to comment.