Skip to content

Commit

Permalink
Disable OpenMPI binding when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
casparl committed Aug 11, 2023
1 parent 8e7ad30 commit ce0960c
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,14 @@ dependencies = [
]

configopts = ' -DCMAKE_SKIP_RPATH=OFF -DWITH_TESTS=ON -DWITH_CUDA=ON '
configopts += '-DCTEST_ARGS:STRING=-j%(parallel)s '

runtest = '-j%(parallel)s check_unit_tests && make check_python'
configopts += '-DCTEST_ARGS:STRING=-j%(parallel)s -DTEST_TIMEOUT=1200 '

# Avoid that ESPResSo tests all get bound to the first core
# see https://github.com/easybuilders/easybuild-easyconfigs/pull/18517#issuecomment-1674612814
local_OMPI_test_vars = 'OMPI_MCA_hwloc_base_binding_policy=none '
pretestopts = local_OMPI_test_vars
runtest = '-j%(parallel)s check_unit_tests '
runtest += '&& %s make check_python' % local_OMPI_test_vars

modextrapaths = {'PYTHONPATH': ['lib/python%(pyshortver)s/site-packages']}

Expand Down
11 changes: 8 additions & 3 deletions easybuild/easyconfigs/e/ESPResSo/ESPResSo-4.2.1-foss-2021a.eb
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,14 @@ dependencies = [
]

configopts = ' -DCMAKE_SKIP_RPATH=OFF -DWITH_TESTS=ON -DWITH_CUDA=OFF '
configopts += '-DCTEST_ARGS:STRING=-j%(parallel)s '

runtest = '-j%(parallel)s check_unit_tests && make check_python'
configopts += '-DCTEST_ARGS:STRING=-j%(parallel)s -DTEST_TIMEOUT=1200 '

# Avoid that ESPResSo tests all get bound to the first core
# see https://github.com/easybuilders/easybuild-easyconfigs/pull/18517#issuecomment-1674612814
local_OMPI_test_vars = 'OMPI_MCA_hwloc_base_binding_policy=none '
pretestopts = local_OMPI_test_vars
runtest = '-j%(parallel)s check_unit_tests '
runtest += '&& %s make check_python' % local_OMPI_test_vars

modextrapaths = {'PYTHONPATH': ['lib/python%(pyshortver)s/site-packages']}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,14 @@ dependencies = [
]

configopts = ' -DCMAKE_SKIP_RPATH=OFF -DWITH_TESTS=ON -DWITH_CUDA=ON '
configopts += '-DCTEST_ARGS:STRING=-j%(parallel)s '

runtest = '-j%(parallel)s check_unit_tests && make check_python'
configopts += '-DCTEST_ARGS:STRING=-j%(parallel)s -DTEST_TIMEOUT=1200 '

# Avoid that ESPResSo tests all get bound to the first core
# see https://github.com/easybuilders/easybuild-easyconfigs/pull/18517#issuecomment-1674612814
local_OMPI_test_vars = 'OMPI_MCA_hwloc_base_binding_policy=none '
pretestopts = local_OMPI_test_vars
runtest = '-j%(parallel)s check_unit_tests '
runtest += '&& %s make check_python' % local_OMPI_test_vars

modextrapaths = {'PYTHONPATH': ['lib/python%(pyshortver)s/site-packages']}

Expand Down
11 changes: 8 additions & 3 deletions easybuild/easyconfigs/e/ESPResSo/ESPResSo-4.2.1-foss-2022a.eb
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,14 @@ dependencies = [
]

configopts = ' -DCMAKE_SKIP_RPATH=OFF -DWITH_TESTS=ON -DWITH_CUDA=OFF '
configopts += '-DCTEST_ARGS:STRING=-j%(parallel)s '

runtest = '-j%(parallel)s check_unit_tests && make check_python'
configopts += '-DCTEST_ARGS:STRING=-j%(parallel)s -DTEST_TIMEOUT=1200 '

# Avoid that ESPResSo tests all get bound to the first core
# see https://github.com/easybuilders/easybuild-easyconfigs/pull/18517#issuecomment-1674612814
local_OMPI_test_vars = 'OMPI_MCA_hwloc_base_binding_policy=none '
pretestopts = local_OMPI_test_vars
runtest = '-j%(parallel)s check_unit_tests '
runtest += '&& %s make check_python' % local_OMPI_test_vars

modextrapaths = {'PYTHONPATH': ['lib/python%(pyshortver)s/site-packages']}

Expand Down

0 comments on commit ce0960c

Please sign in to comment.