Skip to content

Commit

Permalink
Unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
shwina committed Jan 11, 2022
1 parent 86f00a3 commit 2454435
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions python/cudf/cudf/utils/gpu_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def validate_setup():

import warnings

from cuda.cudart import cudaDeviceAttr, cudaError_t
from cuda.cudart import cudaError_t

from rmm._cuda.gpu import (
CUDARuntimeError,
Expand Down Expand Up @@ -68,11 +68,7 @@ def _try_get_old_or_new_symbols():
# Cupy throws RunTimeException to get GPU count,
# hence obtaining GPU count by in-house cpp api above

# 75 - Indicates to get "cudaDevAttrComputeCapabilityMajor" attribute
# 0 - Get GPU 0
major_version = getDeviceAttribute(
cudaDeviceAttr.cudaDevAttrComputeCapabilityMajor, 0
)
major_version = getDeviceAttribute("ComputeCapabilityMajor", 0)

if major_version >= 6:
# You have a GPU with NVIDIA Pascal™ architecture or better
Expand All @@ -86,9 +82,7 @@ def _try_get_old_or_new_symbols():
pass
else:
device_name = deviceGetName(0)
minor_version = getDeviceAttribute(
cudaDeviceAttr.cudaDevAttrComputeCapabilityMinor, 0
)
minor_version = getDeviceAttribute("ComputeCapabilityMinor", 0)
warnings.warn(
f"You will need a GPU with NVIDIA Pascal™ or "
f"newer architecture"
Expand Down

0 comments on commit 2454435

Please sign in to comment.