Skip to content

Commit

Permalink
change skipping so that it checks if there is IPU
Browse files Browse the repository at this point in the history
  • Loading branch information
akrzgc committed Oct 27, 2023
1 parent 3441cb8 commit a3d91ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test_benchmark_performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
tile_put_sharded,
)

from pyscf_ipu.experimental.device import has_ipu, ipu_func
from pyscf_ipu.nanoDFT.nanoDFT import build_mol, nanoDFT, nanoDFT_options


@pytest.mark.skip(reason="No IPU in CI.")
@pytest.mark.skipif(not has_ipu(), reason="Skipping ipu test!")
@pytest.mark.ipu
def test_basic_demonstration():
dummy = np.random.rand(2,3).astype(np.float32)
Expand All @@ -40,7 +41,7 @@ def jitted_inner_test(dummy, dummier):

assert True

@pytest.mark.skip(reason="No IPU in CI.")
@pytest.mark.skipif(not has_ipu(), reason="Skipping ipu test!")
@pytest.mark.ipu
@pytest.mark.parametrize("molecule", ["methane", "benzene"])
def test_dense_eri(molecule):
Expand Down

0 comments on commit a3d91ff

Please sign in to comment.