- Hands-On GPU Programming with Python and CUDA
- Dr. Brian Tuomanen
- 147字
- 2021-06-10 19:25:37
Setting up GCC, Eclipse IDE, and graphical dependencies (Linux)
Open up a Terminal from the Ubuntu desktop (Ctrl + Alt + T). We first update the apt repository as follows:
sudo apt-get update
Now we can install everything we need for CUDA with one additional line:
sudo apt-get install build-essential binutils gdb eclipse-cdt
Here, build-essential is the package with the gcc and g++ compilers, and other utilities such as make; binutils has some generally useful utilities, such as the LD linker, gdb is the debugger, and Eclipse is the IDE that we will be using.
Let's also install a few additional dependencies that will allow us to run some of the graphical (OpenGL) demos included with the CUDA Toolkit with this line:
sudo apt-get install freeglut3 freeglut3-dev libxi-dev libxmu-dev
Now you should be good to go to install the CUDA Toolkit.
推薦閱讀
- Linux操作系統基礎
- 發布!設計與部署穩定的分布式系統(第2版)
- Linux實戰
- 無蘋果不生活 OS X Mountain Lion隨身寶典
- 操作系統基礎與實踐:基于openEuler平臺
- Extending Puppet
- Installing and Configuring Windows 10:70-698 Exam Guide
- 巧學活用Windows 7
- Kali Linux 2018:Windows Penetration Testing
- INSTANT Migration from Windows Server 2008 and 2008 R2 to 2012 How-to
- Kali Linux高級滲透測試
- OpenVZ Essentials
- Linux系統安全:縱深防御、安全掃描與入侵檢測
- Less Web Development Essentials
- openEuler操作系統核心技術與行業應用實踐