From 899756384b05ff2e73b42c6419d7f75eafaadaed Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Wed, 14 Feb 2024 10:34:04 -0600 Subject: [PATCH] Raise an error on import for unsupported GPUs. --- python/cudf/cudf/utils/gpu_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/cudf/cudf/utils/gpu_utils.py b/python/cudf/cudf/utils/gpu_utils.py index 10a2f700cbd..b5387ddeb5f 100644 --- a/python/cudf/cudf/utils/gpu_utils.py +++ b/python/cudf/cudf/utils/gpu_utils.py @@ -86,7 +86,7 @@ def validate_setup(): minor_version = getDeviceAttribute( cudaDeviceAttr.cudaDevAttrComputeCapabilityMinor, 0 ) - warnings.warn( + raise UnsupportedCUDAError( "A GPU with NVIDIA Volta™ (Compute Capability 7.0) " "or newer architecture is required.\n" f"Detected GPU 0: {device_name}\n"