我的 gpu 是 gtx 2070。我遵循了https://github.com/rapidsai/cudf的每一步(我使用“用于 CUDA 10.1 ”的步骤)但没有运气。我无法使用我的 gpu 电源。我还多次重新安装了 ubuntu 操作系统和那些驱动程序。有谁知道如何解决这个问题?我已经在这一步中挣扎了几个月......欣赏它!!!!
操作系统:ubuntu 16.04
驱动版本:430.64
CUDA 版本:10.1
python=3.6
cudf==0.13.0
版本是兼容的链接但是为什么我不能用我的gpu运行代码?每次我在终端中运行我的代码时,它都会显示以下错误:
Traceback (most recent call last):
File "/home/user/Documents/test.py", line 5, in <module>
import cudf
File "/home/user/miniconda3/lib/python3.6/site-packages/cudf/__init__.py", line 7, in
<module>
from cudf import core, datasets
File "/home/user/miniconda3/lib/python3.6/site-packages/cudf/core/__init__.py", line 3, in
<module>
from cudf.core import buffer, column
File "/home/user/miniconda3/lib/python3.6/site-packages/cudf/core/column/__init__.py", line
1, in <module>
from cudf.core.column.categorical import CategoricalColumn # noqa: F401
File "/home/user/miniconda3/lib/python3.6/site-packages/cudf/core/column/categorical.py",
line 11, in <module>
import cudf._libxx as libcudfxx
File "/home/user/miniconda3/lib/python3.6/site-packages/cudf/_libxx/__init__.py", line 5, in
<module>
from . import (
File "cudf/_libxx/aggregation.pxd", line 9, in init cudf._libxx.reduce
File "cudf/_libxx/aggregation.pyx", line 11, in init cudf._libxx.aggregation
File "/home/user/miniconda3/lib/python3.6/site-packages/cudf/utils/cudautils.py", line 7, in
<module>
from numba import cuda, numpy_support
ImportError: cannot import name 'numpy_support'<br>
我运行的代码:
import cupy as cp
import cudf
import pandas as pd
import glob
for f in glob.glob("/home/user/Documents/btc_test.csv"):
data=cudf.read_csv(f)
num=data.iloc[1:5]['low']
numcp=cp.log(num)
print(numcp)