From 4bdbfca284129e08e3e1023be0a89d7eaa416027 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 9 Oct 2026 12:22:34 -0700 Subject: [PATCH] fix(samples): waive streaming overlap when host pools are unsupported --- .../streamingCopyComputeOverlap.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/samples/cuda_core/streamingCopyComputeOverlap/streamingCopyComputeOverlap.py b/samples/cuda_core/streamingCopyComputeOverlap/streamingCopyComputeOverlap.py index e4ea6530133..d28bfb28fdc 100644 --- a/samples/cuda_core/streamingCopyComputeOverlap/streamingCopyComputeOverlap.py +++ b/samples/cuda_core/streamingCopyComputeOverlap/streamingCopyComputeOverlap.py @@ -103,7 +103,11 @@ def main(): device.set_current() if not device.properties.memory_pools_supported: - print("PinnedMemoryResource requires CUDA memory pools, which are not supported on this device. Waiving.") + print("DeviceMemoryResource requires CUDA memory pools, which are not supported on this device. Waiving.") + sys.exit(EXIT_WAIVED) + + if not device.properties.host_memory_pools_supported: + print("PinnedMemoryResource requires host memory pools, which are not supported on this device. Waiving.") sys.exit(EXIT_WAIVED) print()