Skip to content

Commit f4984ae

Browse files
committed
Also allow tmpfs on current cufile (where we know it works) so it runs in CI
1 parent 2451985 commit f4984ae

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

cuda_bindings/tests/test_cufile.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,13 @@ def skipIfUnsupportedFilesystem(tmpdir_factory):
9090
cmd = ["findmnt", "-no", "FSTYPE", "-T", tmpdir_factory.getbasetemp()]
9191
fs_type = subprocess.check_output(cmd, text=True).strip() # noqa: S603
9292
logging.info(f"Current filesystem type (findmnt): {fs_type}")
93-
if fs_type not in ("ext4", "xfs"):
94-
pytest.skip("cuFile handle_register requires ext4 or xfs filesystem")
93+
# tmpfs is supported since 13.2 (probably), 1.18 definitely seems fine:
94+
if cufileVersionLessThan(1180):
95+
supported_fs_types = ("ext4", "xfs")
96+
else:
97+
supported_fs_types = ("ext4", "xfs", "tmpfs")
98+
if fs_type not in supported_fs_types:
99+
pytest.skip(f"cuFile handle_register does not support filesystem: {fs_type}")
95100

96101

97102
@cache

0 commit comments

Comments
 (0)