Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cuda_core/tests/test_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -1831,6 +1831,8 @@ def test_vmm_host_modify_allocation_rejects_exportable_handle_type(init_cuda):
def test_vmm_allocate_zero_size(init_cuda):
"""allocate(0) returns an empty buffer without a driver call; a grow of it inherits its stream."""
device = _vmm_device_or_skip()
if device.compute_capability.major < 7:
pytest.skip("__nanosleep is only available starting Volta (sm70)")
mr = _vmm_resource(device)
s = device.create_stream()
try:
Expand Down Expand Up @@ -1898,6 +1900,8 @@ def test_vmm_close_synchronizes_recorded_streams(init_cuda, close_input_first):
instead of faulting.
"""
device = _vmm_device_or_skip()
if device.compute_capability.major < 7:
pytest.skip("__nanosleep is only available starting Volta (sm70)")
mr = _vmm_resource(device)
sleeper = NanosleepKernel(device, sleep_duration_ms=200)
s1 = device.create_stream()
Expand Down
Loading