Enable MPI ensemble testing for gmxapi.
authorM. Eric Irrgang <ericirrgang@gmail.com>
Fri, 22 May 2020 15:38:20 +0000 (18:38 +0300)
committerM. Eric Irrgang <ericirrgang@gmail.com>
Tue, 26 May 2020 14:22:20 +0000 (17:22 +0300)
Refs #3469

admin/ci-scripts/build-and-test-py-gmxapi-0.1.sh
admin/ci-scripts/build-and-test-sample_restraint-2020.sh
admin/gitlab-ci/python-gmxapi.gitlab-ci.yml
admin/gitlab-ci/sample_restraint-regression.gitlab-ci.yml

index 1b60bb1c12163eed62d52eddc7ffac97b2d46d25..7c97ec3fe48da7c0666b8e6d59ee3d318b19d29a 100644 (file)
@@ -36,30 +36,28 @@ popd
 
 # Run Python unit tests.
 python -m pytest $PWD/python_packaging/src/test --junitxml=$PY_UNIT_TEST_XML
-# TODO: enable MPI tests
-#if [ -x `which mpiexec` ]; then
-#    PYTHONDONTWRITEBYTECODE=1 \
-#    mpiexec --allow-run-as-root \
-#      --mca opal_warn_on_missing_libcuda 0 \
-#      --mca orte_base_help_aggregate 0 \
-#      -n 2 \
-#      `which python` -m pytest \
-#        -p no:cacheprovider \
-#        $PWD/python_packaging/src/test \
-#        --junitxml=$PY_MPI_UNIT_TEST_XML
-#fi
+if [ -x `which mpiexec` ]; then
+    PYTHONDONTWRITEBYTECODE=1 \
+    mpiexec --allow-run-as-root \
+      --mca opal_warn_on_missing_libcuda 0 \
+      --mca orte_base_help_aggregate 0 \
+      -n 2 \
+      `which python` -m pytest \
+        -p no:cacheprovider \
+        $PWD/python_packaging/src/test \
+        --junitxml=$PY_MPI_UNIT_TEST_XML
+fi
 
 # Run Python acceptance tests.
 python -m pytest $PWD/python_packaging/test --junitxml=$PY_ACCEPTANCE_TEST_XML
-# TODO: enable MPI tests
-#if [ -x `which mpiexec` ]; then
-#    PYTHONDONTWRITEBYTECODE=1 \
-#    mpiexec --allow-run-as-root \
-#      --mca opal_warn_on_missing_libcuda 0 \
-#      --mca orte_base_help_aggregate 0 \
-#      -n 2 \
-#      `which python` -m pytest \
-#        -p no:cacheprovider \
-#        $PWD/python_packaging/test \
-#        --junitxml=$PY_MPI_ACCEPTANCE_TEST_XML
-#fi
+if [ -x `which mpiexec` ]; then
+    PYTHONDONTWRITEBYTECODE=1 \
+    mpiexec --allow-run-as-root \
+      --mca opal_warn_on_missing_libcuda 0 \
+      --mca orte_base_help_aggregate 0 \
+      -n 2 \
+      `which python` -m pytest \
+        -p no:cacheprovider \
+        $PWD/python_packaging/test \
+        --junitxml=$PY_MPI_ACCEPTANCE_TEST_XML
+fi
index 970a87e37fa2013e7ee28b3ad979a551d843e8e3..41a17769ae8560421edd5745b6b10abf5ea1684d 100644 (file)
@@ -40,16 +40,15 @@ pushd python_packaging/sample_restraint
   popd
 
   python -m pytest $PWD/tests --junitxml=$PLUGIN_TEST_XML
-# TODO: enable MPI tests
-#  if [ -x `which mpiexec` ]; then
-#      PYTHONDONTWRITEBYTECODE=1 \
-#      mpiexec --allow-run-as-root \
-#        --mca opal_warn_on_missing_libcuda 0 \
-#        --mca orte_base_help_aggregate 0 \
-#        -n 2 \
-#        `which python` -m pytest \
-#          -p no:cacheprovider \
-#          $PWD/tests \
-#          --junitxml=$PLUGIN_MPI_TEST_XML
-#  fi
+  if [ -x `which mpiexec` ]; then
+      PYTHONDONTWRITEBYTECODE=1 \
+      mpiexec --allow-run-as-root \
+        --mca opal_warn_on_missing_libcuda 0 \
+        --mca orte_base_help_aggregate 0 \
+        -n 2 \
+        `which python` -m pytest \
+          -p no:cacheprovider \
+          $PWD/tests \
+          --junitxml=$PLUGIN_MPI_TEST_XML
+  fi
 popd
index de63b334dc24dc58aedfdaa643ae81962e4ca87c..e33651144f8d2d6f8e301a45b4f4d404b072fba5 100644 (file)
@@ -10,6 +10,9 @@
   stage: test
   image: gromacs/cmake-3.15.7-llvm-8-intelopencl-openmpi:2020
   variables:
+    KUBERNETES_CPU_LIMIT: 2
+    KUBERNETES_CPU_REQUEST: 2
+    KUBERNETES_MEMORY_LIMIT: 2Gi
     PY_UNIT_TEST_XML: $CI_PROJECT_DIR/py-JUnitTestResults.xml
     PY_MPI_UNIT_TEST_XML: $CI_PROJECT_DIR/py-mpi-JUnitTestResults.xml
     PY_ACCEPTANCE_TEST_XML: $CI_PROJECT_DIR/gmxapi-acceptance-JUnitTestResults.xml
index 18606ab5240bd529688241f4876d0160affcf6dd..7fd4fc9b2a181bf3df469800a24b2cbac38ec20c 100644 (file)
@@ -8,6 +8,9 @@
   image: gromacs/cmake-3.15.7-llvm-8-intelopencl-openmpi:2020
   stage: test
   variables:
+    KUBERNETES_CPU_LIMIT: 2
+    KUBERNETES_CPU_REQUEST: 2
+    KUBERNETES_MEMORY_LIMIT: 2Gi
     PLUGIN_TEST_XML: $CI_PROJECT_DIR/py-JUnitTestResults.xml
     PLUGIN_MPI_TEST_XML: $CI_PROJECT_DIR/py-mpi-JUnitTestResults.xml
     EXTRA_INSTALLS: "curl libbz2-dev libffi-dev liblzma-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev libssl-dev llvm python-openssl tk-dev zlib1g-dev"