如何检查 Anaconda 上的 cuda 是否安装正确

2024-03-07

我已经在 Anaconda 上使用以下命令安装了 Cuda

conda 安装-c anaconda cudatoolkit

之前我也使用过以下命令来安装 Tensorflow GPU 版本

conda 安装-c anaconda tensorflow-gpu

但是,Tensorflow-gpu 未激活,当我运行以下脚本时:

    from tensorflow.python.client import device_lib
    print(device_lib.list_local_devices())

名称:“/设备:CPU:0”

设备类型:“CPU”

内存限制:268435456

地点 { } 化身:12015853371339101357 ]


如果你通过 anaconda 安装 numba,你可以运行numba -s这将确认您是否拥有正常运行的 CUDA 系统。在带有 CUDA 的 Linux 系统上:

$ numba -s

System info:
--------------------------------------------------------------------------------
__Time Stamp__
2018-08-27 09:16:49.622828

__Hardware Information__
Machine               : x86_64
CPU Name              : ivybridge
CPU Features          : 
aes avx cmov cx16 f16c fsgsbase mmx pclmul popcnt rdrnd sse sse2 sse3 sse4.1
sse4.2 ssse3 xsave xsaveopt

__OS Information__
Platform              : Linux-4.4.0-57-generic-x86_64-with-debian-jessie-sid
Release               : 4.4.0-57-generic
System Name           : Linux
Version               : #78~14.04.1-Ubuntu SMP Sat Dec 10 00:14:47 UTC 2016
OS specific info      : debianjessie/sid
glibc info            : glibc 2.2.5

__Python Information__
Python Compiler       : GCC 4.4.7 20120313 (Red Hat 4.4.7-1)
Python Implementation : CPython
Python Version        : 3.6.0
Python Locale         : en_US UTF-8

__LLVM information__
LLVM version          : 6.0.0

__CUDA Information__
Found 1 CUDA devices
id 0      b'GeForce GTX 970'                              [SUPPORTED]
                      compute capability: 5.2
                           pci device id: 0
                              pci bus id: 1
Summary:
    1/1 devices are supported
CUDA driver version   : 9020
CUDA libraries:
Finding cublas
    named  libcublas.so.8.0.88
    trying to open library...   ok
Finding cusparse
    named  libcusparse.so.8.0.61
    trying to open library...   ok
Finding cufft
    named  libcufft.so.8.0.61
    trying to open library...   ok
Finding curand
    named  libcurand.so.8.0.61
    trying to open library...   ok
Finding nvvm
    named  libnvvm.so.3.1.0
    trying to open library...   ok
    finding libdevice for compute_20... ok
    finding libdevice for compute_30... ok
    finding libdevice for compute_35... ok
    finding libdevice for compute_50... ok

__Conda Information__
conda_build_version   : not installed
conda_env_version     : 4.5.4
platform              : linux-64
python_version        : 3.6.0.final.0
root_writable         : False

__Current Conda Env__
absl-py                   0.1.10                   py36_0  
accelerate_cudalib        2.0                           0  
bleach                    1.5.0                    py36_0  
ca-certificates           2018.03.07                    0  
certifi                   2018.4.16                py36_0  
cffi                      1.9.1                    py36_0  
conda                     4.5.4                    py36_0  
conda-env                 2.6.0                h36134e3_1  
cryptography              1.7.1                    py36_0  
cudatoolkit               8.0                           3  
cudnn                     7.0.5                 cuda8.0_0  
decorator                 4.0.11                   py36_0  
html5lib                  0.9999999                py36_0  
idna                      2.2                      py36_0  
intel-openmp              2018.0.0             hc7b2577_8  
ipython                   5.3.0                    py36_0  
ipython_genutils          0.2.0                    py36_0  
libffi                    3.2.1                         1  
libgcc-ng                 7.2.0                h7cc24e2_2  
libgfortran               3.0.0                         1  
libgfortran-ng            7.2.0                hdf63c60_3  
libprotobuf               3.5.1                h6f1eeef_0  
libstdcxx-ng              7.2.0                hdf63c60_3  
llvmlite                  0.23.2           py36hdbcaa40_0  
markdown                  2.6.11                   py36_0  
mkl                       2018.0.1             h19d6760_4  
mpmath                    0.19                     py36_1  
nccl                      1.3.4                 cuda8.0_1  
numba                     0.38.1           py36h04863e7_0  
numpy                     1.12.1           py36he24570b_1  
openssl                   1.0.2o               h20670df_0  
path.py                   10.1                     py36_0  
pexpect                   4.2.1                    py36_0  
pickleshare               0.7.4                    py36_0  
pip                       9.0.1                    py36_1  
prompt_toolkit            1.0.13                   py36_0  
protobuf                  3.5.1            py36hf484d3e_0  
ptyprocess                0.5.1                    py36_0  
pyasn1                    0.1.9                    py36_0  
pycosat                   0.6.3            py36h0a5515d_0  
pycparser                 2.17                     py36_0  
pyculib                   1.0.2               np112py36_2  
pyculib_sorting           1.0.0                         8  
pygments                  2.2.0                    py36_0  
pyopenssl                 16.2.0                   py36_0  
python                    3.6.0                         0  
pytorch                   0.3.0           py36cuda8.0cudnn7.0_0  
readline                  6.2                           2  
requests                  2.12.4                   py36_0  
ruamel_yaml               0.11.14                  py36_1  
scipy                     1.0.0            py36hbf646e7_0  
setuptools                38.5.1                   py36_0  
simplegeneric             0.8.1                    py36_1  
six                       1.10.0                   py36_0  
sqlite                    3.13.0                        0  
sympy                     1.1.1                    py36_0  
tensorflow                1.4.1                         0  
tensorflow-base           1.4.1            py36hd00c003_2  
tensorflow-tensorboard    1.5.1            py36hf484d3e_0  
tk                        8.5.18                        0  
traitlets                 4.3.2                    py36_0  
wcwidth                   0.1.7                    py36_0  
werkzeug                  0.14.1                   py36_0  
wheel                     0.29.0                   py36_0  
xz                        5.2.2                         1  
yaml                      0.1.6                         0  
zlib                      1.2.11               ha838bed_2  
--------------------------------------------------------------------------------
If requested, please copy and paste the information between
the dashed (----) lines, or from a given specific section as
appropriate.

=============================================================
IMPORTANT: Please ensure that you are happy with sharing the
contents of the information present, any information that you
wish to keep private you should remove before sharing.
=============================================================

在没有可用 CUDA GPU 的 Windows 系统上:

(base) >numba -s
System info:
--------------------------------------------------------------------------------

__Time Stamp__
2018-08-27 09:17:58.167285

__Hardware Information__
Machine               : AMD64
CPU Name              : haswell
CPU Features          :
aes avx avx2 bmi bmi2 cmov cx16 f16c fma fsgsbase lzcnt mmx movbe pclmul popcnt
rdrnd sse sse2 sse3 sse4.1 sse4.2 ssse3 xsave xsaveopt

__OS Information__
Platform              : Windows-7-6.1.7601-SP1
Release               : 7
System Name           : Windows
Version               : 6.1.7601
OS specific info      : 76.1.7601SP1Multiprocessor Free

__Python Information__
Python Compiler       : MSC v.1900 64 bit (AMD64)
Python Implementation : CPython
Python Version        : 3.6.4
Python Locale         : sv_SE cp1252

__LLVM information__
LLVM version          : 5.0.0

__CUDA Information__
CUDA driver library cannot be found or no CUDA enabled devices are present.
Error class: <class 'numba.cuda.cudadrv.error.CudaSupportError'>

__Conda Information__
conda_build_version   : not installed
conda_env_version     : 4.5.9
platform              : win-64
python_version        : 3.6.4.final.0
root_writable         : True

__Current Conda Env__
alabaster                 0.7.10           py36hcd07829_0
apptools                  4.4.0                    py36_0    conda-forge
asn1crypto                0.24.0                   py36_0
astroid                   1.6.1                    py36_0
babel                     2.5.3                    py36_0
backports                 1.0                      py36_1    conda-forge
backports.functools_lru_cache 1.5                        py_1    conda-forge
bleach                    2.1.2                    py36_0
blosc                     1.14.3               he51fdeb_0
bzip2                     1.0.6                    vc14_1  [vc14]  conda-forge
ca-certificates           2018.4.16                     0    conda-forge
certifi                   2018.4.16                py36_0    conda-forge
cffi                      1.11.4           py36hfa6e2cd_0
chardet                   3.0.4            py36h420ce6e_1
cloudpickle               0.5.2                    py36_1
colorama                  0.3.9            py36h029ae33_0
conda                     4.5.9                    py36_0    conda-forge
conda-env                 2.6.0                h36134e3_1
configobj                 5.0.6                    py36_0
console_shortcut          0.1.1                h6bb2dd7_3
cryptography              2.1.4            py36he1d7878_0
cudatoolkit               8.0                           3    anaconda
curl                      7.59.0                   vc14_1  [vc14]  conda-forge
cycler                    0.10.0           py36h009560c_0
decorator                 4.2.1                    py36_0
docutils                  0.14             py36h6012d8f_0
entrypoints               0.2.3            py36hfd66bb0_2
envisage                  4.5.1                    py36_0    conda-forge
expat                     2.2.5                    vc14_0  [vc14]  conda-forge
fastcache                 1.0.2                    py36_0    conda-forge
freetype                  2.7                      vc14_1  [vc14]  conda-forge
future                    0.16.0                   py36_0    conda-forge
hdf4                      4.2.13                   vc14_0  [vc14]  conda-forge
hdf5                      1.10.1                   vc14_2  [vc14]  conda-forge
html5lib                  1.0.1            py36h047fa9f_0
icc_rt                    2017.0.4             h97af966_0
icu                       58.2             vc14hc45fdbb_0  [vc14]  anaconda
idna                      2.6              py36h148d497_1
imagesize                 1.0.0                    py36_0
intel-openmp              2018.0.0             hd92c6cd_8
ipykernel                 4.8.2                    py36_0
ipython                   6.2.1            py36h9cf0123_1
ipython_genutils          0.2.0            py36h3c5d0ee_0
ipywidgets                7.1.2                    py36_0
isort                     4.3.4                    py36_0
jedi                      0.11.1                   py36_0
jinja2                    2.10             py36h292fed1_0
jpeg                      9b               vc14h4d7706e_1  [vc14]  anaconda
jsoncpp                   1.8.1                    vc14_0  [vc14]  conda-forge
jsonschema                2.6.0            py36h7636477_0
jupyter                   1.0.0                    py36_4
jupyter_client            5.2.2                    py36_0
jupyter_console           5.2.0            py36h6d89b47_1
jupyter_core              4.4.0            py36h56e9d50_0
keyring                   13.2.1                   py36_0    conda-forge
krb5                      1.14.6                   vc14_0  [vc14]  conda-forge
lazy-object-proxy         1.3.1            py36hd1c21d2_0
libiconv                  1.15                     vc14_0  [vc14]  conda-forge
libnetcdf                 4.4.1.1                 vc14_10  [vc14]  conda-forge
libpng                    1.6.32           vc14h5163883_3  [vc14]  anaconda
libssh2                   1.8.0                    vc14_2  [vc14]  conda-forge
libtiff                   4.0.9                    vc14_0  [vc14]  conda-forge
libxml2                   2.9.8                    vc14_0  [vc14]  conda-forge
llvmlite                  0.22.0           py36ha794a7c_0
lz4-c                     1.8.1                    vc14_0  [vc14]  conda-forge
m2w64-gcc-libgfortran     5.3.0                         6
m2w64-gcc-libs            5.3.0                         7
m2w64-gcc-libs-core       5.3.0                         7
m2w64-gmp                 6.1.0                         2
m2w64-libwinpthread-git   5.0.0.4634.697f757               2
markupsafe                1.0              py36h0e26971_1
matplotlib                2.1.0                    py36_0    conda-forge
mayavi                    4.6.1               py36_vc14_0  [vc14]  conda-forge
mccabe                    0.6.1            py36hb41005a_1
menuinst                  1.4.11           py36hfa6e2cd_0
mistune                   0.8.3                    py36_0
mkl                       2018.0.1             h2108138_4
mpi4py                    2.0.0                    py36_1
mpmath                    1.0.0                      py_0    conda-forge
msys2-conda-epoch         20160418                      1
nbconvert                 5.3.1            py36h8dc0fde_0
nbformat                  4.4.0            py36h3a5bc1b_0
notebook                  5.4.0                    py36_0
numba                     0.37.0          np113py36h3a37915_0
numexpr                   2.6.5                    py36_0    conda-forge
numpy                     1.13.3           py36hb69e940_3
numpydoc                  0.7.0            py36ha25429e_0
openssl                   1.0.2o                   vc14_0  [vc14]  conda-forge
packaging                 16.8             py36ha0986f6_1
pandoc                    1.19.2.1             hb2460c7_1
pandocfilters             1.4.2            py36h3ef6317_1
parso                     0.1.1            py36hae3edee_0
pickleshare               0.7.4            py36h9de030f_0
pip                       9.0.1            py36h226ae91_4
prompt_toolkit            1.0.15           py36h60b8f86_0
psutil                    5.4.3            py36hfa6e2cd_0
py4j                      0.10.7                    <pip>
pycodestyle               2.3.1            py36h7cc55cd_0
pycosat                   0.6.3            py36h413d8a4_0
pycparser                 2.18             py36hd053e01_1
pyface                    6.0.0                      py_1    conda-forge
pyflakes                  1.6.0            py36h0b975d6_0
pygments                  2.2.0            py36hb010967_0
pylint                    1.8.2                    py36_0
pyopenssl                 17.5.0           py36h5b7d817_0
pyparsing                 2.2.0            py36h785a196_1
pyqt                      5.6.0            py36h764d66f_6    conda-forge
pysocks                   1.6.7            py36h698d350_1
pytables                  3.4.3                    py36_8    conda-forge
python                    3.6.4                h6538335_1
python-dateutil           2.6.1            py36h509ddcb_1
pytz                      2018.3                   py36_0
pywin32                   222              py36hfa6e2cd_0
pywin32-ctypes            0.1.2                    py36_0    conda-forge
pywinpty                  0.5.1                    py36_0
pyzmq                     16.0.3           py36he714bf5_0
qt                        5.6.2                    vc14_1  [vc14]  conda-forge
qtawesome                 0.4.4            py36h5aa48f6_0
qtconsole                 4.3.1            py36h99a29a9_0
qtpy                      1.3.1            py36hb8717c5_0
requests                  2.18.4           py36h4371aae_1
rope                      0.10.7           py36had63a69_0
ruamel_yaml               0.15.35          py36hfa6e2cd_1
scipy                     1.0.0            py36h1260518_0
send2trash                1.5.0                    py36_0
setuptools                38.4.0                   py36_0
sfepy                     2018.1                   py36_0    conda-forge
simplegeneric             0.8.1                    py36_2
sip                       4.18                     py36_1    conda-forge
six                       1.11.0           py36h4db2310_1
snappy                    1.1.7                    vc14_1  [vc14]  conda-forge
snowballstemmer           1.2.1            py36h763602f_0
sphinx                    1.7.1                    py36_0
sphinxcontrib             1.0              py36hbbac3d2_1
sphinxcontrib-websupport  1.0.1            py36hb5e5916_1
spyder                    3.3.0                    py36_2    conda-forge
spyder-kernels            0.2.4                      py_2    conda-forge
sqlite                    3.20.1           vc14h7ce8c62_1  [vc14]  anaconda
sympy                     1.1.1                    py36_0    conda-forge
tbb                       2018_20171205            vc14_0  [vc14]  conda-forge
TC-Python                 2018.2.14768              <pip>
terminado                 0.8.1                    py36_1
testpath                  0.3.1            py36h2698cfe_0
tornado                   4.5.3                    py36_0
traitlets                 4.3.2            py36h096827d_0
traits                    4.6.0                    py36_1    conda-forge
traitsui                  6.0.0                      py_1    conda-forge
typing                    3.6.4                    py36_0
urllib3                   1.22             py36h276f60a_0
vc                        14                   h0510ff6_3
vs2015_runtime            14.0.25123                    3
vtk                       8.1.0             py36_vc14_200  [vc14]  conda-forge
wcwidth                   0.1.7            py36h3d5aa90_0
webencodings              0.5.1            py36h67c50ae_1
wheel                     0.30.0           py36h6c3ec14_1
widgetsnbextension        3.1.4                    py36_0
win_inet_pton             1.0.1            py36he67d7fd_1
wincertstore              0.2              py36h7fe50ca_0
winpty                    0.4.3                    vc14_2  [vc14]  conda-forge
wrapt                     1.10.11          py36he5f5981_0
wxpython                  4.0.0rc1.dev3440+0f9b36e          py36_0    conda-forg
e
yaml                      0.1.7            vc14hb31d195_1  [vc14]  anaconda
zlib                      1.2.11           vc14h1cdd9ab_1  [vc14]  anaconda
--------------------------------------------------------------------------------

If requested, please copy and paste the information between
the dashed (----) lines, or from a given specific section as
appropriate.

=============================================================
IMPORTANT: Please ensure that you are happy with sharing the
contents of the information present, any information that you
wish to keep private you should remove before sharing.
=============================================================
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何检查 Anaconda 上的 cuda 是否安装正确 的相关文章

随机推荐

  • Facebook Messenger 如何与 Wit.ai Bot Engine 连接?

    在 Facebook 的文档中 他们提到了 wit ai Bot Engine 但我在网上找不到任何地方解释如何将您在 Wit 中构建的故事与 Facebook Messenger 应用程序连接起来 Wit ai 需要一个输入 用户输入 句
  • SVG旋转变换矩阵

    我从 SVG 文件中的元素解析了一个转换属性 例如rotate 45 30 50 我想将其转换为矩阵形式 我搜索了它 我所能找到的只是rotate a 没有坐标 看起来像这样 cos a sin a sin a cos a 0 0 谁能告诉
  • C# Linq 合并两个字典[重复]

    这个问题在这里已经有答案了 如何使以下方法更具函数式 linq 风格 public static Dictionary
  • 使用 python 和 opencv 检测图像中的文本区域

    我想使用 python 2 7 和 opencv 2 4 9 检测图像的文本区域 并在其周围画一个矩形区域 就像下面的示例图片所示 我对图像处理很陌生 所以任何想法如何做到这一点将不胜感激 有多种方法可以检测图像中的文本 我建议看看这个问题
  • 如何在 Rust 中反序列化(使用 serde)可选 json 参数,可以是字符串或字符串数​​组

    我是 Rust 新手 我正在尝试使用 serde 库反序列化 JSON 数据 我有以下 JSON 结构 foo bar speech something or foo bar speech something something else
  • Scala 中的 Future[Either[AppError, Option[User]]]

    正如标题所提到的 使用这样的数据结构有意义吗 我来一一解释一下 Future 代表异步计算 要么 传达已知错误 选项 传达该值可能不存在 看到这个的时候我有点害怕 使用这种类型组合是一个好的做法吗 让我们看一下解决方案空间 Success
  • 这两个使用 IQueryable 和 .AsParallel 的代码片段是否等效?

    我正在编写一些非常基本的 TPL 代码 并且遇到了一种情况 我很好奇以下两个片段是否等效 myEnumerable AsParallel Select e gt do some work that takes awhile return n
  • CouchDb 视图 - 列表中的键

    我想查询 CouchDB 并且我有一个特定的需求 我的查询应该返回与此条件相对应的文档的名称字段 id 等于或包含在文档归档 列表 中 例如 字段输出如下 output doc s100 doc s101 doc s102 doc s103
  • 为什么`(map digitalToInt) . show`这么快?

    转换非负数Integer其数字列表通常是这样完成的 import Data Char digits Integer gt Int digits map digitToInt show 我试图找到一种更直接的方法来执行任务 而不涉及字符串转换
  • 手动 wp_install() 困难

    我正在尝试使用以下代码在 PHP 中自动安装 WordPress 发行版 base dir home username wordpress location chdir base dir define WP SITEURL http www
  • Angular:7.2.1 ES6 类 ReferenceError:初始化前无法访问“X”

    我有以下 TypeScript 课程 export class Vehicule extends TrackableEntity vehiculeId number constructor super return super proxif
  • 通过 C# 中的反射引发事件

    我想要编写一个可重用的函数通过反射引发事件 经过搜索 我发现了这个类似的问题 如何在 NET C 中通过反射引发事件 https stackoverflow com questions 198543 how do i raise an ev
  • GCC 在 Alpine Linux 中找不到 stdio.h

    在新的 Alpine Linux 中 我安装了 GCC apk add update cache gcc 但仍然是一个简单的程序 include
  • 内联标记块 (@

    Content

    ) 不能嵌套。仅允许一级内联标记

    您好 我收到错误 Inline markup blocks p Content p cannot be nested Only one level of inline markup is allowed 将 Kendo UI 选项卡条和 M
  • 如何实现空对象?

    Details 我找到了一些关于空对象模式 here https softwareengineering stackexchange com questions 152094 null pointers vs null object pat
  • SQL SSIS 转换问题

    我有一个 excel 文件 我正在将其转换为 SSIS 包中的 prn 我的问题 我的其中一栏有货币 所有内容都应该有小数点 但并非所有数字都有 例如 如果没有美分 它只会读取 10425 我需要在 SSIS 中执行的操作是读取 10425
  • Laravel Eloquent 将变量传递给关系函数

    我正在使用 eloquent 来查询数据库条目及其对应关系 问题是我需要通过 date关系中的变量query如下图所示 我可以通过 date变量到第一个查询 因为它不在 with 函数内 我怎样才能用第二个来实现这个目标 Query pub
  • 是否可以存储 Team Foundation Server 自动登录的凭据?

    是否可以存储证书我用来连接到我的团队基础服务器直接在视觉工作室2010 我想避免在每次 VS 启动时插入它们 问题是托管 TFS 的计算机不在域中 并且我使用在该计算机上创建的用户的凭据进行连接 假设机器名是TOOLS 用户是Marco 我
  • GPU 的延迟是多少?

    我可以找到 CPU 核心与其缓存 主内存等之间的 CPU 周期延迟 但似乎很难找到有关现代 GPU 的类似信息 有谁知道 GPU 的延迟 特别是现代 nvidia GPU GF110 或更高版本 与其内存之间的延迟 谢谢 GPU 内存确实具
  • 如何检查 Anaconda 上的 cuda 是否安装正确

    我已经在 Anaconda 上使用以下命令安装了 Cuda conda 安装 c anaconda cudatoolkit 之前我也使用过以下命令来安装 Tensorflow GPU 版本 conda 安装 c anaconda tenso