- Hands-On GPU Programming with Python and CUDA
- Dr. Brian Tuomanen
- 102字
- 2021-06-10 19:25:40
Using PyCUDA's gpuarray class
Much like how NumPy's array class is the cornerstone of numerical programming within the NumPy environment, PyCUDA's gpuarray class plays an analogously prominent role within GPU programming in Python. This has all of the features you know and love from NumPy—multidimensional vector/matrix/tensor shape structuring, array-slicing, array unraveling, and overloaded operators for point-wise computations (for example, +, -, *, /, and **).
gpuarray is really an indispensable tool for any budding GPU programmer. We will spend this section going over this particular data structure and gaining a strong grasp of it before we move on.
推薦閱讀
- Windows Server 2019 Cookbook
- Linux內核完全注釋(20周年版·第2版)
- 阿里云數字新基建系列:云原生操作系統Kubernetes
- WordPress Mobile Web Development:Beginner's Guide
- Instant Handlebars.js
- SharePoint 2013 WCM Advanced Cookbook
- Extending Bootstrap
- Instant Optimizing Embedded Systems using Busybox
- Windows 7案例教程
- Ceph分布式存儲實戰
- Fedora 12 Linux應用基礎
- 跟老男孩學Linux運維:Shell編程實戰
- bash shell腳本編程經典實例(第2版)
- 再也不踩坑的kubernetes實戰指南
- 完美應用Ubuntu(第4版)