ubuntu20安装mxnet gpu参考汇总

一.网址

https://developer.nvidia.com/zh-cn/cuda-downloads

https://docs.nvidia.com/cuda/index.html

https://docs.nvidia.com/cuda/cuda-quick-start-guide/index.html

https://developer.nvidia.com/rdp/cudnn-download

https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html#verify

https://dist.mxnet.io/python

https://github.com/apache/incubator-mxnet/issues/18931

https://d2l.ai/

https://zh.d2l.ai/

https://github.com/d2l-ai/d2l-en

https://github.com/d2l-ai/d2l-zh

http://ipython.org/notebook.html

https://jupyter.readthedocs.io/en/latest/install.html

https://github.com/jupyter/notebook

二. 讨论

The setup of nvidia.persistenced is formulated as follows.

1. check the status of nvidia-persistenced

$ sudo systemctl status nvidia-persistenced

2. Enable nvidia-persistenced

$ sudo systemctl enable nvidia-persistenced

3. Reboot for execution

$ sudo reboot

If there are issues in the above-mentioned second step, developers need to do the following.

4. Open nvidia-persistenced.service

$ sudo gedit /lib/systemd/system/nvidia-persistenced.service

5. Modify and add the content of the file

1). Modify the line in section of [Service]

[Service]

Change

ExecStart=/usr/bin/nvidia-persistenced --user nvidia-persistenced --no-persistence-mode --verbose

To:

ExecStart=/usr/bin/nvidia-persistenced --user nvidia-persistenced --persistence-mode --verbose

2). Add the following lines into the file:

[Install] 
WantedBy=multi-user.target 
RequiredBy=nvidia.service

Notes:

The temporal method to set nvidia.persistenced is to use the following command:

$ sudo nvidia-smi -pm 1

Cheers

https://forums.developer.nvidia.com/t/setting-up-nvidia-persistenced/47986/11

三. 环境

1.

gedit .bashrc

export PATH=/usr/local/cuda-11.2/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-11.2/lib64\
                         ${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

2.

安装whl包:pip install wheel    ->    pip install  **.whl

pip install notebook

3.

pip install d2l

pip install d2lzh

kdir d2l-en && cd d2l-en
curl https://d2l.ai/d2l-en.zip -o d2l-en.zip
unzip d2l-en.zip && rm d2l-en.zip

猜你喜欢

转载自blog.csdn.net/eidolon_foot/article/details/114380090