- Hands-On GPU:Accelerated Computer Vision with OpenCV and CUDA
- Bhaumik Vaidya
- 223字
- 2021-08-13 15:48:17
Standard C compiler
Whenever you are running a CUDA application, it will need two compilers: one for GPU code and one for CPU code. The compiler for the GPU code will come with an installation of CUDA toolkit, which will be discussed in the next section. You also need to install a standard C compiler for executing CPU code. There are different C compilers based on the operating systems:
- On Windows: For all Microsoft Windows editions, it is recommended to use Microsoft Visual Studio C compiler. It comes with Microsoft Visual Studio and can be downloaded from its official website: https://www.visualstudio.com/downloads/.
The express edition for commercial applications needs to be purchased, but you can use community editions for free in non-commercial applications. For running the CUDA application, install Microsoft Visual Studio with a Microsoft Visual Studio C compiler selected. Different CUDA versions support different Visual Studio editions, so you can refer to the NVIDIA CUDA website for Visual Studio version support.
- On Linux: Mostly, all Linux distributions come with a standard GNU C Complier (GCC), and hence it can be used to compile CPU code for CUDA applications.
- On Mac: On the Mac operating system, you can install a GCC compiler by downloading and installing Xcode for macOS. It is freely available and can be downloaded from Apple's website:
- 從學徒到高手:汽車電路識圖、故障檢測與維修技能全圖解
- 算法訓練營:提高篇(全彩版)
- JavaScript:Moving to ES2015
- Swift 4從零到精通iOS開發(fā)
- Node.js開發(fā)指南
- Unity 3D腳本編程:使用C#語言開發(fā)跨平臺游戲
- MINECRAFT編程:使用Python語言玩轉(zhuǎn)我的世界
- UML軟件建模
- Python Machine Learning Cookbook
- Python 快速入門(第3版)
- PHP項目開發(fā)全程實錄(第4版)
- 游戲設計的底層邏輯
- Oracle SOA Suite 12c Administrator's Guide
- Python高性能編程(第2版)
- 跟小樓老師學用Axure RP 9:玩轉(zhuǎn)產(chǎn)品原型設計