Re-enable some tests/debugging
@@ -67,13 +67,12 @@ test:
- if not exist %LIBRARY_LIB%/OpenMM.lib exit 1 # [win]
- if not exist %LIBRARY_LIB%/plugins/OpenMMOpenCL.lib exit 1 # [win]
- if not exist %LIBRARY_LIB%/plugins/OpenMMCPU.lib exit 1 # [win]
+ # We should see all four platforms in Linux, but CUDA is not recognized without a GPU
+ - python -c "from simtk.openmm import Platform as P; n = P.getNumPlatforms(); assert n == 3, f'# platforms ({n}) != 3'"
+ # Debug silent errors in plugin loading
+ - python -c "import simtk.openmm as mm; print(mm.Platform.getPluginLoadFailures())"
# Debug hardcoded library path
- python -c "import os, simtk.openmm.version as v; print(v.openmm_library_path); assert os.path.isdir(v.openmm_library_path), 'Directory does not exist'"
- # # Check for silent errors in plugin loading
- # - python -c "import simtk.openmm as mm; err = mm.Platform.getPluginLoadFailures(); assert not err, err"
- # # We should see all four platforms in Linux, but only three in MacOS
- # - python -c "from simtk.openmm import Platform as P; n = P.getNumPlatforms(); assert n == 4, f'# platforms ({n}) != 4'" # [linux]
- # - python -c "from simtk.openmm import Platform as P; n = P.getNumPlatforms(); assert n == 3, f'# platforms ({n}) != 3'" # [osx or win]
about:
home: http://openmm.org
