- Hands-On GPU Programming with Python and CUDA
- Dr. Brian Tuomanen
- 242字
- 2021-06-10 19:25:38
Summary
Setting up your Python environment for GPU programming can be a very delicate process. The Anaconda Python 2.7 distribution is suggested for both Windows and Linux users for the purposes of this text. First, we should ensure that we have the correct hardware for GPU programming; generally speaking, a 64-bit Windows or Linux PC with 4 gigabytes of RAM and any entry-level NVIDIA GPU from 2016 or later will be sufficient for our ends. Windows users should be careful in using a version of Visual Studio that works well with both the CUDA Toolkit and Anaconda (such as VS 2015), while Linux users should be particularly careful in the installation of their GPU drivers, and set up the appropriate environment variables in their .bashrc file. Furthermore, Windows users should create an appropriate launch script that will set up their environment for GPU programming and should use a pre-compiled wheel file for the installation of the PyCUDA library.
Now, with our programming environment set up and in place, we will spend the next chapter learning the very basics of GPU programming. We will see how to write and read data to and from the GPU's memory, and how to write some very simple elementwise GPU functions in CUDA C. (If you have seen the classic 1980's film The Karate Kid, then you might think of the following chapter as the "wax on, wax off" of GPU programming.)
- Linux設備驅動開發詳解(第2版)
- Kubernetes網絡權威指南:基礎、原理與實踐
- 操作系統基礎與實踐:基于openEuler平臺
- 構建可擴展分布式系統:方法與實踐
- 高性能Linux服務器構建實戰:運維監控、性能調優與集群應用
- Windows Server 2019 Administration Fundamentals
- 網絡操作系統管理與應用(第三版)
- Mastering Reactive JavaScript
- Social Data Visualization with HTML5 and JavaScript
- Windows 8實戰從入門到精通(超值版)
- Windows 7實戰從入門到精通
- 從實踐中學習Windows滲透測試
- 鴻蒙操作系統設計原理與架構
- Learn SwiftUI
- Linux內核API完全參考手冊(第2版)