参考书籍
《Hands-On GPU Programming with Python and CUDA》by Dr. Brian Tuomanen
书中代码:
PacktPublishing/Hands-On-GPU-Programming-with-Python-and-CUDAgithub.comCupy
《如何将Numpy加速700倍?用 CuPy 呀》
cupy/cupygithub.com《在Chainer中使用GPU》
在Chainer中使用GPU - 基于Python的深度学习bennix.github.io教程:
Tutorial - CuPy 8.0.0 documentationdocs-cupy.chainer.org社区:
https://groups.google.com/forum/#!forum/cupygroups.google.com 如何将Numpy加速700倍?用 CuPy 呀www.jiqizhixin.comi7–8700k CPU
1080 Ti GPU
32 GB of DDR4 3000MHz RAM
CUDA 9.0
The latest version of cuDNN and NCCL libraries are included in binary packages (wheels). For the source package, you will need to install cuDNN/NCCL before installing CuPy, if you want to use it.
依赖CUDA cuDNN NCCL
pip install cupy
pip install cupy-cuda90
pip install cupy-cuda100
pip install cupy-cuda101
import numpy as np
import cupy as cp
import time
### Numpy and CPU
s = time.time()
*x_cpu = np.ones((1000,1000,1000))*
e = time.time()
print(e - s)### CuPy and GPU
s = time.time()
*x_gpu = cp.ones((1000,1000,1000))*
e = time.time()
print(e - s)
Pycuda
【GPU加速系列】PyCUDA(一):上手简单操作 - 雨先生 - 开发者的网上家园www.cnblogs.com Welcome to PyCUDA’s documentation!documen.tician.de pycudapypi.orgpyopencl
pyopencl 2019.1.2
inducer/pyopenclgithub.comNumba
PP鲁:GPU加速02:超详细Python Cuda零基础入门教程,没有显卡也能学!zhuanlan.zhihu.comMinPy
dmlc/minpygithub.com专栏 | MinPy:剑气双修的武功秘籍
专栏 | MinPy:剑气双修的武功秘籍www.sohu.comMars
重磅开源!阿里首款自研科学计算引擎 Mars 来了www.jianshu.com版权声明:本文为知识在于分享博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https:// blog.csdn.net/baidu_408 40693/article/details/103920308