Skip to content

Commit

Permalink
Call hook to set OMP_NUM_THREADS
Browse files Browse the repository at this point in the history
  • Loading branch information
Caspar van Leeuwen committed Jul 25, 2024
1 parent d62443b commit 00fca31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eessi/testsuite/tests/apps/PyTorch/PyTorch_torchvision.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ def apply_setup_hooks(self):
# This is a hybrid test, binding is important for performance
hooks.set_compact_process_binding(self)

# Set OMP_NUM_THREADS based on the number of cores per task
hooks.set_omp_num_threads(self)

@run_after('setup')
def set_ddp_options(self):
# Set environment variables for PyTorch DDP
Expand Down

0 comments on commit 00fca31

Please sign in to comment.