Skip to content

Commit

Permalink
add comments for test skip condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfbalin committed Jul 18, 2024
1 parent 537b815 commit 2dc96d9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,12 @@ def test_gpu_cached_feature_read_async(dtype, pin_memory):
values = next(reader)
assert torch.equal(values.wait(), a_cuda[ids])

# pin_memory is not applicable to DiskBasedFeature.
if (
# pin_memory is not applicable to DiskBasedFeature.
pin_memory
# DiskBasedFeature's only backend is io_uring.
or not torch.ops.graphbolt.detect_io_uring()
# numpy.save does not work with bfloat16.
or dtype == torch.bfloat16
):
return
Expand Down

0 comments on commit 2dc96d9

Please sign in to comment.