…dings_12
isSupportedFilesystem() in cuda_bindings_12 returned the filesystem type
of the first /proc/mounts entry whose mount point is a string prefix of
the current directory. "/" is a prefix of every path, so in CI containers
it saw the overlay root and skipped ten cuFile tests with "requires ext4
or xfs filesystem" on every Linux CUDA 12 row.
Port the findmnt-based check from cuda_bindings_13 (NVIDIA#1271), which asks the
kernel for the mount containing the directory. The function is now
identical in both roots.
Closes NVIDIA#3592.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closes #3592. Part of #2077.
Summary
Ten cuFile tests in
cuda_bindings_12/tests/test_cufile.pyskipped on every Linux CUDA 12 row with "cuFile handle_register requires ext4 or xfs filesystem". The cause is a bug inisSupportedFilesystem()that was fixed only incuda_bindings_13(#1271); the CUDA 12 tests were imported from the 12.9.x maintenance source (#3172) without it.cuda_bindings_13one; only theimport subprocessit needs is added. Other differences between the two files are left alone.cuda_bindings_13already has this fix, so no change is needed there.Evidence
CI coverage: on
main, these ten tests skip in all 12 Linux CUDA 12 configurations, while thecuda_bindings_13copies (samefindmntcheck, same containers) pass on 20 Linux configurations..github/workflows/test-wheel-linux.ymlinstallsutil-linux(which providesfindmnt) on every Linux row. After this change the ten tests should run and pass on the Linux CUDA 12 rows:test_handle_register,test_cufile_read_write,test_cufile_read_write_host_memory,test_cufile_read_write_large,test_cufile_read_async,test_cufile_write_async,test_cufile_async_read_write,test_batch_io_basic,test_batch_io_cancel,test_batch_io_large_operationsLocally (cuda-bindings 12.9.11, nvidia-cufile-cu12 1.14.1, ext4): the ten tests pass, and the whole
test_cufile.pypasses (21 passed).Confirming in CI: in this PR's CI run, the Linux CUDA 12 cuda.bindings jobs should report the ten tests PASSED, where
mainreports them SKIPPED. For example:Merge Danger
Door: two-way. Test-only change.
Blast Radius:
cuda_bindings_12/tests/test_cufile.py. The cuFile tests now actually run on the Linux CUDA 12 rows, so a real cuFile problem there would fail instead of being skipped.Reviewers: please feel free to push commits directly to this PR to improve it.
🤖 Generated with Claude Code