Skip to content

Commit

Permalink
Raise an error on import for unsupported GPUs. (#15053)
Browse files Browse the repository at this point in the history
RAPIDS 24.02 dropped support for Pascal GPUs. When using an unsupported GPU, the behavior of cudf is undefined and sometimes produces results that appear valid (and empty) but conceal CUDA kernel launch errors. This PR changes the behavior to error on import if unsupported GPUs are detected.

Authors:
  - Bradley Dice (https://github.com/bdice)

Approvers:
  - Matthew Roeschke (https://github.com/mroeschke)

URL: #15053
  • Loading branch information
bdice committed Feb 23, 2024
1 parent 2b57c61 commit c84e1e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cudf/cudf/utils/gpu_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c84e1e8

Please sign in to comment.