- Hands-On GPU Programming with Python and CUDA
- Dr. Brian Tuomanen
- 177字
- 2021-06-10 19:25:38
Installing PyCUDA (Linux)
Open up a command line in Linux. Ensure that your PATH variable is set up correctly to use the local Anaconda installation of Python (rather than the system-wide installation) by typing which python at the bash prompt and pressing Enter (Anaconda should have automatically configured your .bashrc during installation); this should tell you that the Python binary is in your local ~/anaconda2/bin directory, rather than in the /usr/bin directory. If this isn't the case, open a text editor and put the line export PATH="/home/${USER}/anaconda2/bin:${PATH}" at the end of your ~/.bashrc file, save this, open a new Terminal, and then check again.
There are several options for installation of PyCUDA. The easiest option is to install the latest stable version from the PyPI repository by typing pip install pycuda. You can also install the latest version of PyCUDA by following the instructions at the PyCUDA official website at https://mathema.tician.de/software/pycuda/. Please note that if you wish to re-install PyCUDA from a different source, be sure to uninstall it first with pip uninstall pycuda.
- 操作系統(tǒng)實(shí)用教程(Linux版)
- Social Media Mining with R
- 混沌工程:復(fù)雜系統(tǒng)韌性實(shí)現(xiàn)之道
- Linux系統(tǒng)安全基礎(chǔ):二進(jìn)制代碼安全性分析基礎(chǔ)與實(shí)踐
- 細(xì)說(shuō)Linux基礎(chǔ)知識(shí)
- Linux內(nèi)核設(shè)計(jì)的藝術(shù):圖解Linux操作系統(tǒng)架構(gòu)設(shè)計(jì)與實(shí)現(xiàn)原理
- NetDevOps入門(mén)與實(shí)踐
- Cassandra 3.x High Availability(Second Edition)
- Building Telephony Systems With Asterisk
- Linux 從入門(mén)到項(xiàng)目實(shí)踐(超值版)
- Mastering Sass
- Windows 8完全自學(xué)手冊(cè)
- Getting Started with Citrix XenApp 6.5
- Windows7系統(tǒng)維護(hù)百寶箱
- Windows 11使用方法與技巧從入門(mén)到精通