Skip to content

Commit

Permalink
also skip lammps dpa-2 tests for CUDA
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Nov 12, 2024
1 parent 49f57bc commit e8a99f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/lmp/tests/test_lammps_dpa_jax.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
write_lmp_data,
)

if os.environ.get("CUDA_VISIBLE_DEVICES", "") != "":
pytest.skip(
reason="The model is generated with CPU",
allow_module_level=True,
)

pbtxt_file2 = (
Path(__file__).parent.parent.parent / "tests" / "infer" / "deeppot-1.pbtxt"
)
Expand Down

0 comments on commit e8a99f4

Please sign in to comment.