- 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.
- Windows Server 2019 Cookbook
- 嵌入式Linux開發技術
- Learning Android Intents
- Linux網絡操作系統與實訓(第三版)
- 嵌入式Linux系統開發:基于Yocto Project
- 精通Linux內核開發
- Windows Server 2012 Hyper-V Cookbook
- 循序漸進學Docker
- 高性能Linux服務器構建實戰:系統安全、故障排查、自動化運維與集群架構
- Linux使用和管理指南:從云原生到可觀測性
- Windows 7應用入門與技巧
- Django Project Blueprints
- Hadoop Real-World Solutions Cookbook
- bash shell腳本編程經典實例(第2版)
- Multi-Cloud for Architects