Skip to content

Commit 4dcea89

Browse files
committed
nvbug5939707: Don't run tests requiring __nanosleep on < sm70
1 parent d818a75 commit 4dcea89

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

cuda_core/tests/memory_ipc/test_event_ipc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
NBYTES = 64
1616

1717

18+
@pytest.mark.skipif(Device().compute_capability.major < 7, reason="__nanosleep is only available starting Volta (sm70)")
1819
class TestEventIpc:
1920
"""Check the basic usage of IPC-enabled events with a latch kernel."""
2021

cuda_core/tests/test_event.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

44

@@ -21,6 +21,7 @@ def test_event_init_disabled():
2121
cuda.core._event.Event() # Ensure back door is locked.
2222

2323

24+
@pytest.mark.skipif(Device().compute_capability.major < 7, reason="__nanosleep is only available starting Volta (sm70)")
2425
def test_timing_success(init_cuda):
2526
options = EventOptions(enable_timing=True)
2627
device = Device()
@@ -117,6 +118,7 @@ def test_error_timing_recorded():
117118
event3 - event2
118119

119120

121+
@pytest.mark.skipif(Device().compute_capability.major < 7, reason="__nanosleep is only available starting Volta (sm70)")
120122
def test_error_timing_incomplete():
121123
device = Device()
122124
device.set_current()

cuda_core/tests/test_helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

@@ -17,6 +17,7 @@
1717
NBYTES = 64
1818

1919

20+
@pytest.mark.skipif(Device().compute_capability.major < 7, reason="__nanosleep is only available starting Volta (sm70)")
2021
def test_latchkernel():
2122
"""Test LatchKernel."""
2223
log = TimestampedLogger(enabled=ENABLE_LOGGING)

0 commit comments

Comments
 (0)