官术网_书友最值得收藏!

Setting up GCC, Eclipse IDE, and graphical dependencies (Linux)

Open up a Terminal from the Ubuntu desktop (CtrlAltT). 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.

主站蜘蛛池模板: 和政县| 株洲市| 盘锦市| 鄄城县| 福泉市| 莎车县| 锦屏县| 兴义市| 兴山县| 澄迈县| 嘉定区| 乌拉特中旗| 霍山县| 临城县| 淅川县| 卢龙县| 湛江市| 黄山市| 平果县| 徐州市| 万盛区| 化隆| 宜都市| 黄陵县| 克什克腾旗| 建水县| 泾源县| 军事| 津南区| 大洼县| 河北区| 泽普县| 秭归县| 丰顺县| 绿春县| 临高县| 饶平县| 祁东县| 德格县| 和硕县| 武定县|