- 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.
推薦閱讀
- 電腦組裝與系統安裝
- SOA實踐者說
- 高性能Linux服務器構建實戰:運維監控、性能調優與集群應用
- Windows Server 2012網絡操作系統企業應用案例詳解
- Linux就該這么學
- Linux運維最佳實踐
- AWS Development Essentials
- INSTANT Migration from Windows Server 2008 and 2008 R2 to 2012 How-to
- 計算機應用基礎(Windows 7+Office 2016)
- 基于Arduino的嵌入式系統入門與實踐
- Linux深度攻略
- 完美應用Ubuntu(第4版)
- Getting Started with Raspberry Pi Zero
- 用“芯”探核:基于龍芯的Linux內核探索解析
- SQL Server on Azure Virtual Machines