如何使用 GPU Tesla K80 在 google colab 上安装 cuDF?

发布于 2025-01-11 00:45:58 字数 814 浏览 0 评论 0原文

我尝试在 Google Colab 上安装 cuDF 几个小时。我应该安装 cuDF 和 GPU Tesla T4 的要求之一。虽然 google colab 每次都给我 GPU Tesla K80 但我无法安装 cuDF。我每次都尝试使用这段代码来检查我拥有的 GPU 类型:

import pynvml

pynvml.nvmlInit()
handle = pynvml.nvmlDeviceGetHandleByIndex(0)
device_name = pynvml.nvmlDeviceGetName(handle)

if device_name != b'Tesla T4':
  raise Exception("""
    Unfortunately this instance does not have a T4 GPU.
    
    Please make sure you've configured Colab to request a GPU instance type.
    
    Sometimes Colab allocates a Tesla K80 instead of a T4. Resetting the instance.

    If you get a K80 GPU, try Runtime -> Reset all runtimes...
  """)
else:
  print('Woo! You got the right kind of GPU!') 

通过 google colab 获取特定类型的 GPU 太令人沮丧了,因为这有点运气。想请问一下有没有人遇到同样的问题,是怎么解决的?

I am trying to install cuDF on Google Colab for hours. One of the requirements I should install cuDF with GPU Tesla T4. While google colab gives me every time GPU Tesla K80 and I cannot install cuDF. I tried this snippet of code to check what type of GPU I have every time:

import pynvml

pynvml.nvmlInit()
handle = pynvml.nvmlDeviceGetHandleByIndex(0)
device_name = pynvml.nvmlDeviceGetName(handle)

if device_name != b'Tesla T4':
  raise Exception("""
    Unfortunately this instance does not have a T4 GPU.
    
    Please make sure you've configured Colab to request a GPU instance type.
    
    Sometimes Colab allocates a Tesla K80 instead of a T4. Resetting the instance.

    If you get a K80 GPU, try Runtime -> Reset all runtimes...
  """)
else:
  print('Woo! You got the right kind of GPU!') 

It is too frustrating to get specific type of GPU by google colab because it is kind of a luck. I am asking here to see if someone experienced the same issue, and how was it solved?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

故事↓在人 2025-01-18 00:45:58

K80使用Kepler GPU架构,RAPIDS不支持该架构。 Colab 本身不再可以运行最新版本的 RAPIDS。您可以尝试 SageMaker Studio Lab 来体验“立即尝试”。 https://github.com/rapidsai-community/rapids-smsl

The K80 use Kepler GPU architecture, which is not supported by RAPIDS. Colab itself no longer can run the latest versions of RAPIDS. You can try SageMaker Studio Lab for your Try it Now experience. https://github.com/rapidsai-community/rapids-smsl.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文