Skip to content
Open
Show file tree
Hide file tree
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
10 changes: 10 additions & 0 deletions cuda_bindings_12/tests/nvml/test_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def test_grid_licensable_features(all_devices):
nvml.GridLicenseExpiry(feature.license_expiry)


# This test is not currently run in any CI job
def test_get_nv_link_supported_bw_modes(all_devices, subtests):
for device in all_devices:
with subtests.test(device_index=nvml.device_get_index(device)):
Expand Down Expand Up @@ -101,6 +102,7 @@ def test_device_get_unrepairable_memory_flag(all_devices, subtests):
assert isinstance(status, int)


# This test is not currently run in any CI job
def test_device_vgpu_get_heterogeneous_mode(all_devices, subtests):
for device in all_devices:
with subtests.test(device_index=nvml.device_get_index(device)):
Expand All @@ -127,6 +129,7 @@ def test_get_power_management_limit(all_devices, subtests):
nvml.device_get_power_management_limit(device)


# This test is not currently run in any CI job
def test_set_power_management_limit(all_devices, subtests):
for device in all_devices:
with (
Expand Down Expand Up @@ -203,6 +206,7 @@ def _check_vgpu_type_id_list(type_ids):
assert ids == []


# This test is not currently run in any CI job
@pytest.mark.agent_authored(model="claude-sonnet-5")
def test_device_get_supported_vgpus_no_namerror(all_devices, subtests):
"""device_get_supported_vgpus must not raise a NameError, whether or not
Expand All @@ -215,6 +219,7 @@ def test_device_get_supported_vgpus_no_namerror(all_devices, subtests):
_check_vgpu_type_id_list(vgpu_type_ids)


# This test is not currently run in any CI job
@pytest.mark.agent_authored(model="claude-sonnet-5")
def test_device_get_creatable_vgpus_no_namerror(all_devices, subtests):
"""device_get_creatable_vgpus must not raise a NameError, whether or not
Expand All @@ -227,6 +232,7 @@ def test_device_get_creatable_vgpus_no_namerror(all_devices, subtests):
_check_vgpu_type_id_list(vgpu_type_ids)


# This test is not currently run in any CI job
@pytest.mark.agent_authored(model="claude-sonnet-5")
def test_device_get_active_vgpus_no_namerror(all_devices, subtests):
"""device_get_active_vgpus must not raise a NameError, whether or not
Expand Down Expand Up @@ -260,6 +266,7 @@ def _require_mig_enabled(device):
pytest.skip(f"MIG is not enabled on device {device}")


# This test is not currently run in any CI job
@pytest.mark.agent_authored(model="claude-sonnet-5")
def test_device_get_gpu_instances_empty_result(all_devices, subtests):
"""device_get_gpu_instances must not raise ValueError: Invalid shape in
Expand Down Expand Up @@ -293,6 +300,7 @@ def test_device_get_gpu_instances_empty_result(all_devices, subtests):
assert len(set(handles)) == len(handles)


# This test is not currently run in any CI job
@pytest.mark.agent_authored(model="claude-sonnet-5")
def test_gpu_instance_get_compute_instances_empty_result(all_devices, subtests):
"""gpu_instance_get_compute_instances must not raise ValueError: Invalid
Expand Down Expand Up @@ -340,6 +348,7 @@ def test_gpu_instance_get_compute_instances_empty_result(all_devices, subtests):
assert len(set(handles)) == len(handles)


# This test is not currently run in any CI job
@pytest.mark.agent_authored(model="claude-sonnet-5")
def test_device_get_vgpu_utilization_sized_array(all_devices, subtests):
"""device_get_vgpu_utilization must return an array sized to the real
Expand Down Expand Up @@ -375,6 +384,7 @@ def test_device_get_vgpu_utilization_sized_array(all_devices, subtests):
assert len(set(vgpu_instances)) == len(vgpu_instances)


# This test is not currently run in any CI job
@pytest.mark.agent_authored(model="claude-sonnet-5")
def test_device_get_vgpu_process_utilization_returns_array(all_devices, subtests):
"""device_get_vgpu_process_utilization must return a correctly-sized array
Expand Down
4 changes: 4 additions & 0 deletions cuda_bindings_12/tests/nvml/test_pynvml.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def test_system_get_driver_version(nvml_init):
assert tuple(int(x) for x in vsn.split(".")[:2]) > (0, 0)


# This test is not currently run in any CI job
def test_device_get_attributes(mig_handles):
# nvmlDeviceGetAttributes requires MIG device handle

Expand All @@ -61,6 +62,7 @@ def test_device_get_handle_by_pci_bus_id(ngpus, pci_info):
assert len(handles) == ngpus


# This test is not currently run in any CI job
@pytest.mark.parametrize("scope", [nvml.AffinityScope.NODE, nvml.AffinityScope.SOCKET])
@pytest.mark.skipif(util.is_wsl() or util.is_windows(), reason="Not supported on WSL or Windows")
def test_device_get_memory_affinity(handles, scope):
Expand All @@ -72,6 +74,7 @@ def test_device_get_memory_affinity(handles, scope):
assert len(node_set) == size


# This test is not currently run in any CI job
@pytest.mark.parametrize("scope", [nvml.AffinityScope.NODE, nvml.AffinityScope.SOCKET])
@pytest.mark.skipif(util.is_wsl() or util.is_windows(), reason="Not supported on WSL or Windows")
def test_device_get_cpu_affinity_within_scope(handles, scope):
Expand Down Expand Up @@ -245,6 +248,7 @@ def test_device_get_pcie_throughput(ngpus, handles):
# Test pynvml.nvmlDeviceGetNvLinkRemotePciInfo


# This test is not currently run in any CI job
@pytest.mark.parametrize(
"cap_type",
[
Expand Down
1 change: 1 addition & 0 deletions cuda_bindings_12/tests/test_graphics_apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from cuda.bindings import runtime as cudart


# This test is not currently run in any CI job
def test_graphics_api_smoketest():
if sys.platform.startswith("linux") and not (os.environ.get("DISPLAY") or os.environ.get("WAYLAND_DISPLAY")):
pytest.skip("No display available for the OpenGL smoke test")
Expand Down
1 change: 1 addition & 0 deletions cuda_bindings_13/tests/legacy_api/test_legacy_cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def callableBinary(name):
return shutil.which(name) is not None


# This test is not currently run in any CI job
@pytest.mark.skipif(True, reason="Always skip!")
def test_always_skip():
pass
Expand Down
11 changes: 11 additions & 0 deletions cuda_bindings_13/tests/nvml/test_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def test_get_handle_by_uuidv(all_devices, subtests):
assert new_handle == device


# This test is not currently run in any CI job
def test_get_nv_link_supported_bw_modes(all_devices, subtests):
for device in all_devices:
with subtests.test(device_index=nvml.device_get_index(device)):
Expand Down Expand Up @@ -119,6 +120,7 @@ def test_device_get_unrepairable_memory_flag(all_devices, subtests):
assert isinstance(status, int)


# This test is not currently run in any CI job
def test_device_vgpu_get_heterogeneous_mode(all_devices, subtests):
for device in all_devices:
with subtests.test(device_index=nvml.device_get_index(device)):
Expand All @@ -138,6 +140,7 @@ def test_read_prm_counters(all_devices, subtests):
assert len(read_counters) == 5


# This test is not currently run in any CI job
@pytest.mark.thread_unsafe(reason="API appears to be thread-unsafe (2026-06)")
def test_read_write_prm(all_devices, subtests):
for device in all_devices:
Expand All @@ -160,6 +163,7 @@ def test_get_power_management_limit(all_devices, subtests):
nvml.device_get_power_management_limit(device)


# This test is not currently run in any CI job
def test_set_power_management_limit(all_devices, subtests):
for device in all_devices:
with (
Expand Down Expand Up @@ -241,6 +245,7 @@ def _check_vgpu_type_id_list(type_ids):
assert ids == []


# This test is not currently run in any CI job
@pytest.mark.agent_authored(model="claude-sonnet-5")
def test_device_get_supported_vgpus_no_namerror(all_devices, subtests):
"""device_get_supported_vgpus must not raise a NameError, whether or not
Expand All @@ -253,6 +258,7 @@ def test_device_get_supported_vgpus_no_namerror(all_devices, subtests):
_check_vgpu_type_id_list(vgpu_type_ids)


# This test is not currently run in any CI job
@pytest.mark.agent_authored(model="claude-sonnet-5")
def test_device_get_creatable_vgpus_no_namerror(all_devices, subtests):
"""device_get_creatable_vgpus must not raise a NameError, whether or not
Expand All @@ -265,6 +271,7 @@ def test_device_get_creatable_vgpus_no_namerror(all_devices, subtests):
_check_vgpu_type_id_list(vgpu_type_ids)


# This test is not currently run in any CI job
@pytest.mark.agent_authored(model="claude-sonnet-5")
def test_device_get_active_vgpus_no_namerror(all_devices, subtests):
"""device_get_active_vgpus must not raise a NameError, whether or not
Expand Down Expand Up @@ -298,6 +305,7 @@ def _require_mig_enabled(device):
pytest.skip(f"MIG is not enabled on device {device}")


# This test is not currently run in any CI job
@pytest.mark.agent_authored(model="claude-sonnet-5")
def test_device_get_gpu_instances_empty_result(all_devices, subtests):
"""device_get_gpu_instances must not raise ValueError: Invalid shape in
Expand Down Expand Up @@ -331,6 +339,7 @@ def test_device_get_gpu_instances_empty_result(all_devices, subtests):
assert len(set(handles)) == len(handles)


# This test is not currently run in any CI job
@pytest.mark.agent_authored(model="claude-sonnet-5")
def test_gpu_instance_get_compute_instances_empty_result(all_devices, subtests):
"""gpu_instance_get_compute_instances must not raise ValueError: Invalid
Expand Down Expand Up @@ -378,6 +387,7 @@ def test_gpu_instance_get_compute_instances_empty_result(all_devices, subtests):
assert len(set(handles)) == len(handles)


# This test is not currently run in any CI job
@pytest.mark.agent_authored(model="claude-sonnet-5")
def test_device_get_vgpu_utilization_sized_array(all_devices, subtests):
"""device_get_vgpu_utilization must return an array sized to the real
Expand Down Expand Up @@ -413,6 +423,7 @@ def test_device_get_vgpu_utilization_sized_array(all_devices, subtests):
assert len(set(vgpu_instances)) == len(vgpu_instances)


# This test is not currently run in any CI job
@pytest.mark.agent_authored(model="claude-sonnet-5")
def test_device_get_vgpu_process_utilization_returns_array(all_devices, subtests):
"""device_get_vgpu_process_utilization must return a correctly-sized array
Expand Down
1 change: 1 addition & 0 deletions cuda_bindings_13/tests/nvml/test_pci.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def test_bridge_chip_hierarchy_t():
assert isinstance(hierarchy.bridge_chip_info, nvml.BridgeChipInfo)


# This test is not currently run in any CI job
def test_bridge_chip_info(all_devices, subtests):
for device in all_devices:
with subtests.test(device_index=nvml.device_get_index(device)):
Expand Down
3 changes: 3 additions & 0 deletions cuda_bindings_13/tests/nvml/test_pynvml.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def test_system_get_driver_version(nvml_init):
assert tuple(int(x) for x in vsn.split(".")[:2]) > (0, 0)


# This test is not currently run in any CI job
def test_device_get_attributes(mig_handles):
# nvmlDeviceGetAttributes requires MIG device handle

Expand Down Expand Up @@ -73,6 +74,7 @@ def test_device_get_handle_by_pci_bus_id(ngpus):
assert len(handles) == ngpus


# This test is not currently run in any CI job
@pytest.mark.parametrize("scope", [nvml.AffinityScope.NODE, nvml.AffinityScope.SOCKET])
@pytest.mark.skipif(IS_WSL or IS_WINDOWS, reason="Not supported on WSL or Windows")
def test_device_get_memory_affinity(handles, scope, subtests):
Expand All @@ -85,6 +87,7 @@ def test_device_get_memory_affinity(handles, scope, subtests):
assert len(node_set) == size


# This test is not currently run in any CI job
@pytest.mark.parametrize("scope", [nvml.AffinityScope.NODE, nvml.AffinityScope.SOCKET])
@pytest.mark.skipif(IS_WSL or IS_WINDOWS, reason="Not supported on WSL or Windows")
def test_device_get_cpu_affinity_within_scope(handles, scope, subtests):
Expand Down
1 change: 1 addition & 0 deletions cuda_bindings_13/tests/nvml/test_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def unit_handles(nvml_init):
return [nvml.unit_get_handle_by_index(i) for i in range(count)]


# This test is not currently run in any CI job
@pytest.mark.agent_authored(model="claude-sonnet-4-6")
def test_unit_get_devices_returns_array(unit_handles):
"""Regression test: unit_get_devices must not crash due to double-pointer cast.
Expand Down
2 changes: 2 additions & 0 deletions cuda_bindings_13/tests/test_cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def node_array(nodes):
return (ctypes.c_void_p * len(nodes))(*nodes)


# This test is not currently run in any CI job
@pytest.mark.skipif(True, reason="Always skip!")
def test_always_skip():
pass
Expand Down Expand Up @@ -88,6 +89,7 @@ def test_cuda_memcpy():
driver.mem_free_v2(dptr)


# This test is not currently run in any CI job
@pytest.mark.agent_authored(model="claude-sonnet-5-5")
@pytest.mark.skipif(driver_version_less_than(13041), reason="cuGraphAddNode_v3 was added in CUDA 13.4.1")
def test_graph_add_node_v3_returns_the_node():
Expand Down
1 change: 1 addition & 0 deletions cuda_bindings_13/tests/test_graphics_apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def _gl_context():
win.close()


# This test is not currently run in any CI job
@pytest.mark.parametrize(
"flags",
[
Expand Down
1 change: 1 addition & 0 deletions cuda_bindings_13/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ def test_check_nvvm_compiler_options_arch_detection():
assert check_nvvm_compiler_options(["-arch=compute_99999"]) is False


# This test is not currently run in any CI job
def test_check_nvvm_compiler_options_no_libnvvm():
if _libnvvm_available:
pytest.skip("libNVVM is available; this test targets the fallback path")
Expand Down
1 change: 1 addition & 0 deletions cuda_core/tests/example_tests/test_sample_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import pytest


# This test is not currently run in any CI job
@pytest.mark.parametrize(
("distribution_name", "expected_source", "expected_version"),
(
Expand Down
7 changes: 7 additions & 0 deletions cuda_core/tests/example_tests/test_samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@

# Samples launch full GPU workloads in their own subprocess, so keep them
# serialized when the suite is run under pytest-run-parallel.
# For sample_key values: cuda_core/binarySearch, cuda_core/cudaComputeLambdas, cuda_core/customPyTorchKernel,
# cuda_core/customTensorFlowKernel, cuda_core/fftSignalAnalysis, cuda_core/glInteropFluidNumbaCudaMlir,
# cuda_core/glInteropFluid, cuda_core/glInteropMipmapLod, cuda_core/glInteropPlasma, cuda_core/greenContext,
# cuda_core/matrixMulSharedMem, cuda_core/multiGPUGradientAverage, cuda_core/numpyVsCupy, cuda_core/pageRank,
# cuda_core/parallelReduction, cuda_core/prefixSum, cuda_core/processCheckpoint, cuda_core/reductionMultiBlockCG,
# cuda_core/simplePrint, cuda_core/tmaTensorMap:
# This test is not currently run in any CI job
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
@pytest.mark.parallel_threads_limit(1)
@pytest.mark.parametrize("sample_key", _SAMPLES)
@pytest.mark.samples
Expand Down
5 changes: 5 additions & 0 deletions cuda_core/tests/graph/test_graph_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,8 @@ def test_node_type_preserved_by_pred_succ(node_spec):
assert matched[0] is node


# For node_spec values empty and host_callback_cfunc:
# This test is not currently run in any CI job
def test_node_attrs(node_spec):
"""Type-specific attributes have expected values after construction."""
spec, g, node, expected_attrs = node_spec
Expand All @@ -702,6 +704,8 @@ def test_node_attrs(node_spec):
assert actual == expected, f"{spec.name}.{attr}: expected {expected}, got {actual}"


# For node_spec values empty and host_callback_cfunc:
# This test is not currently run in any CI job
def test_node_attrs_preserved_by_nodes(node_spec):
"""Type-specific attributes survive round-trip through graph_definition.nodes()."""
spec, g, node, expected_attrs = node_spec
Expand Down Expand Up @@ -922,6 +926,7 @@ def test_alloc_peer_access(mempool_device_x2):
assert d1.device_id in node.peer_access


# This test is not currently run in any CI job
@pytest.mark.agent_authored(model="gpt-5.6-sol")
def test_alloc_memory_type_host(init_cuda):
"""HOST graph alloc nodes reconstruct memory_type from the driver, not the Python argument."""
Expand Down
2 changes: 2 additions & 0 deletions cuda_core/tests/graph/test_graph_node_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,8 @@ def test_failed_definition_node_update_preserves_state(
case.assert_exec_uses(graph, case.original)


# For the host-callback-ctypes parameter case:
# This test is not currently run in any CI job
@pytest.mark.agent_authored(model="gpt-5.6")
def test_definition_node_update_rejects_wrong_type(
definition_update_case,
Expand Down
1 change: 1 addition & 0 deletions cuda_core/tests/memory/test_managed_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ def test_preferred_location_roundtrip(self, location_ops_device, external_manage
buf.preferred_location = None
assert buf.preferred_location is None

# This test is not currently run in any CI job
@pytest.mark.thread_unsafe(reason="external_managed_buffer is shared between threads")
def test_preferred_location_roundtrip_host_numa(self, location_ops_device):
"""Host(numa_id=N) round-trips correctly on CUDA 13 builds."""
Expand Down
6 changes: 6 additions & 0 deletions cuda_core/tests/memory_ipc/test_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ def test_register_rejects_non_ipc_memory_resource(mempool_device):
DeviceMemoryResource.from_registry(key)


# For the VirtualMR parameter case:
# This test is not currently run in any CI job
@pytest.mark.human_authored
def test_register_rejects_mismatched_uuid(ipc_memory_resource):
"""register() rejects a UUID that does not match the resource's own.
Expand Down Expand Up @@ -138,6 +140,8 @@ def test_ipc_allocation_handle_state_tracks_close():
os.close(write_fd)


# For the VirtualMR parameter case:
# This test is not currently run in any CI job
@pytest.mark.agent_authored(model="gpt-5.6")
def test_closed_ipc_allocation_handle_rejected_before_registry_hit(ipc_device, ipc_memory_resource):
mr = ipc_memory_resource
Expand Down Expand Up @@ -330,6 +334,8 @@ def ASSERT(self, exc_type, exc_msg):
assert exc_msg.startswith("Argument 'ipc_descriptor' has incorrect type")


# For the inherited test_main[VirtualMR] case:
# This test is not currently run in any CI job
class TestDanglingBuffer(ChildErrorHarness):
"""
Error when importing a buffer object without registering its memory
Expand Down
4 changes: 4 additions & 0 deletions cuda_core/tests/memory_ipc/test_leaks.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
pytestmark = pytest.mark.thread_unsafe(reason="Tests number of fds which is shared.")


# For the VirtualMR parameter case:
# This test is not currently run in any CI job
@pytest.mark.flaky(reruns=2)
@skip_if_unrunnable
def test_alloc_handle(ipc_memory_resource):
Expand Down Expand Up @@ -97,6 +99,8 @@ def _get_buffer_desc(mr, stream):
return mr.allocate(NBYTES, stream=stream).ipc_descriptor


# For VirtualMR with getobject=alloc_handle (all launchers):
# This test is not currently run in any CI job
@pytest.mark.flaky(reruns=2)
@skip_if_unrunnable
@pytest.mark.parametrize(
Expand Down
Loading
Loading