From dd108916cfb0909b7164c12c08b4fdb07b7e9eb2 Mon Sep 17 00:00:00 2001 From: kiwigitops Date: Thu, 28 May 2026 14:54:51 -0400 Subject: [PATCH] Skip JIT LTO example when PTX cannot load Signed-off-by: kiwigitops --- cuda_core/tests/example_tests/test_basic_examples.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cuda_core/tests/example_tests/test_basic_examples.py b/cuda_core/tests/example_tests/test_basic_examples.py index 31b9f86e0a1..43fab4241db 100644 --- a/cuda_core/tests/example_tests/test_basic_examples.py +++ b/cuda_core/tests/example_tests/test_basic_examples.py @@ -13,6 +13,7 @@ import pytest from cuda.core import Device, ManagedMemoryResource, system +from cuda.core._program import _can_load_generated_ptx try: from cuda.bindings._test_helpers.pep723 import has_package_requirements_or_skip @@ -82,6 +83,7 @@ def has_recent_memory_pool_support() -> bool: SYSTEM_REQUIREMENTS = { "memory_pool_resources.py": has_recent_memory_pool_support, "gl_interop_plasma.py": has_display, + "jit_lto_fractal.py": _can_load_generated_ptx, "pytorch_example.py": lambda: ( has_compute_capability_9_or_higher() and is_x86_64() ), # PyTorch only provides CUDA support for x86_64