- Hands-On GPU Programming with Python and CUDA
- Dr. Brian Tuomanen
- 210字
- 2021-06-10 19:25:38
Setting up our Python environment for GPU programming
With our compilers, IDEs, and the CUDA Toolkit properly installed on our system, we now can set up an appropriate Python environment for GPU programming. There are many options here, but we explicitly recommend that you work with the Anaconda Python Distribution. Anaconda Python is a self-contained and user-friendly distribution that can be installed directly in your user directory, and which does not require any administrator or sudo level system access to install, use, or update.
Keep in mind that Anaconda Python comes in two flavors—Python 2.7, and Python 3. Since Python 3 is currently not as well-supported for some of the libraries we will be using, we will be using Python 2.7 in this book, which still has a broad mainstream usage.
You can install Anaconda Python by going to https://www.anaconda.com/download, choosing your operating system, and then by choosing to download the Python 2.7 version of the distribution. Follow the instructions given on the Anaconda site to install the distribution, which is relatively straightforward. We can now set up our local Python installation for GPU programming.
We will now set up what is arguably the most important Python package for this book: Andreas Kloeckner's PyCUDA package.
- pcDuino開發(fā)實戰(zhàn)
- Windows Server 2012 Hyper-V:Deploying the Hyper-V Enterprise Server Virtualization Platform
- 每天5分鐘玩轉(zhuǎn)Kubernetes
- Linux實戰(zhàn)
- Implementing Azure DevOps Solutions
- 深入Linux內(nèi)核架構(gòu)與底層原理(第2版)
- macOS效率手冊
- 數(shù)據(jù)中心系統(tǒng)工程及應(yīng)用
- ElasticSearch Cookbook
- Social Data Visualization with HTML5 and JavaScript
- Red Hat Enterprise Linux 6.4網(wǎng)絡(luò)操作系統(tǒng)詳解
- μC/OS-III內(nèi)核實現(xiàn)與應(yīng)用開發(fā)實戰(zhàn)指南:基于STM32
- Web Penetration Testing with Kali Linux(Third Edition)
- Agile IT Security Implementation Methodology
- C#實用教程(第2版)