# 30系列显卡可以用了吗

**URL:** <https://d2l.discourse.group/t/topic/7848>\
**Category:** mxnet\
**Created:** [March 31, 2022, 4:56pm UTC](https://d2l.discourse.group/t/topic/7848 "2022-03-31T16:56:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sgdxhhw](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@sgdxhhw](https://d2l.discourse.group/u/sgdxhhw)\
**Post date:** [March 31, 2022, 4:56pm UTC](https://d2l.discourse.group/t/topic/7848/1 "2022-03-31T16:56:16Z")

</div>

看到有mxnet-cu112的下载，是支持30系列显卡的吗?  
具体怎么安装

> **[Client Challenge](https://pypi.org/project/mxnet-cu112/)**

---

<div class="post-metadata">

**Author:** ![sgdxhhw](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@sgdxhhw](https://d2l.discourse.group/u/sgdxhhw)\
**Post date:** [April 2, 2022, 1:31am UTC](https://d2l.discourse.group/t/topic/7848/2 "2022-04-02T01:31:40Z")

</div>

到这里我就不会搞了  
OSError: libcudnn.so.8: cannot open shared object file: No such file or directory

import mxnet as mx  
File “/home/sgdxhhw/.conda/envs/mxnet/lib/python3.6/site-packages/mxnet/base.py”, line 356, in   
\_LIB = \_load\_lib()  
File “/home/sgdxhhw/.conda/envs/mxnet/lib/python3.6/site-packages/mxnet/base.py”, line 347, in \_load\_lib  
lib = ctypes.CDLL(lib\_path[0], ctypes.RTLD\_LOCAL)  
File “/home/sgdxhhw/.conda/envs/mxnet/lib/python3.6/ctypes/ **init**.py”, line 348, in **init**  
self.\_handle = \_dlopen(self.\_name, mode)  
OSError: libcudnn.so.8: cannot open shared object file: No such file or directory

> > >

---

<div class="post-metadata">

**Author:** ![sgdxhhw](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@sgdxhhw](https://d2l.discourse.group/u/sgdxhhw)\
**Post date:** [April 2, 2022, 1:42am UTC](https://d2l.discourse.group/t/topic/7848/3 "2022-04-02T01:42:45Z")

</div>

我用的包

Anaconda3-2021.11-Linux-x86\_64.sh  
mxnet\_cu112-1.9.0-py3-none-manylinux2014\_x86\_64.whl  
NVIDIA-Linux-x86\_64-510.60.02.run  
cuda\_11.2.0\_460.27.04\_linux.run

变量 ~/.bashrc

ulimit -c unlimited  
ulimit -s 819200

export LD\_LIBRARY\_PATH=$LD\_LIBRARY\_PATH:/usr/local/cuda-11.2/lib64  
export PATH=$PATH:/usr/local/cuda-11.2/bin  
export CUDA\_HOME=$CUDA\_HOME:/usr/local/cuda-11.2  
export PATH="/home/sgdxhhw/Anaconda3/bin:$PATH"

---

<div class="post-metadata">

**Author:** ![sgdxhhw](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@sgdxhhw](https://d2l.discourse.group/u/sgdxhhw)\
**Post date:** [April 3, 2022, 11:53am UTC](https://d2l.discourse.group/t/topic/7848/4 "2022-04-03T11:53:58Z")

</div>

可以用了 不过还是有错误  
我是安装下面这些  
python==3.8  
conda install nccl -c conda-forge

pip install autogluon

conda install pytorch=1.7.1 torchvision cudatoolkit=11.0 cudnn -c pytorch -c conda-forge -c nvidia

错误：  
Python 3.8.13  
(mx) sgdxhhw@sgdxhhw-desktop:~$ python  
Python 3.8.13 (default, Mar 28 2022, 11:38:47)  
[GCC 7.5.0] :: Anaconda, Inc. on linux  
Type “help”, “copyright”, “credits” or “license” for more information.

> > > import mxnet as mx  
> > > a= mx.nd.array([1,2,3])  
> > > a

[1. 2. 3.]  
\<NDArray 3 @cpu(0)\>

> > > b= mx.nd.array([1,2,3],mx.gpu())  
> > > [19:45:29] …/src/base.cc:79: cuDNN lib mismatch: linked-against version 8201 != compiled-against version 8100. Set MXNET\_CUDNN\_LIB\_CHECKING=0 to quiet this warning.  
> > > b

[1. 2. 3.]  
\<NDArray 3 @gpu(0)\>

> > >
