Unverified Commit 76d0252c authored by peastman's avatar peastman Committed by GitHub
Browse files

Merge pull request #1933 from swails/test-cuda-versions

Test both CUDA 8 and CUDA 9 (and have it work concurrently).
parents cee3b812 0447a9b5
...@@ -11,7 +11,7 @@ cmake --version ...@@ -11,7 +11,7 @@ cmake --version
echo "Using clang (`which clang`) version:" echo "Using clang (`which clang`) version:"
clang --version clang --version
module load cuda conda/jenkins module load cuda/${CUDA_VERSION} conda/jenkins
# Constants # Constants
CONDAENV=openmm-test-3.5 CONDAENV=openmm-test-3.5
...@@ -22,8 +22,11 @@ export OPENMM_CUDA_COMPILER=`which nvcc` ...@@ -22,8 +22,11 @@ export OPENMM_CUDA_COMPILER=`which nvcc`
# Create a conda environment, but clean up after one first. If it doesn't exist, don't complain. # Create a conda environment, but clean up after one first. If it doesn't exist, don't complain.
# But since we are invoking this shell with -e (exit on all errors), we need || true to prevent this # But since we are invoking this shell with -e (exit on all errors), we need || true to prevent this
# command from crashing the whole shell # command from crashing the whole shell
create_conda_env() {
conda create -yn ${CONDAENV} python=3.5 --no-default-packages --quiet
}
conda remove -yn ${CONDAENV} --all --quiet || true conda remove -yn ${CONDAENV} --all --quiet || true
conda create -yn ${CONDAENV} python=3.5 --no-default-packages --quiet create_conda_env || create_conda_env # Crappy way to work around conda concurrency restrictions
conda install -yn ${CONDAENV} numpy scipy pytest --quiet conda install -yn ${CONDAENV} numpy scipy pytest --quiet
source activate ${CONDAENV} # enter our new environment source activate ${CONDAENV} # enter our new environment
...@@ -40,4 +43,4 @@ python devtools/run-ctest.py --job-duration=120 --timeout 300 ...@@ -40,4 +43,4 @@ python devtools/run-ctest.py --job-duration=120 --timeout 300
# Now remove the conda environment # Now remove the conda environment
source deactivate source deactivate
conda remove -yn ${CONDAENV} --all --quiet conda remove -yn ${CONDAENV} --all --quiet
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment