pyopencl
文章平均质量分 72
zhangxlubc
这个作者很懒,什么都没留下…
展开
-
pyopencl 常用的syntax
import numpy as np a=np.random.rand(m*n).astype(np.float32) # create a m*n array, initialized with random float32 precision dataimport pyopencl as cl ctx=cl.create_some_context() #create space for the...原创 2018-05-29 04:44:33 · 548 阅读 · 0 评论 -
pyopencl 常用的id
source: http://blog.sina.com.cn/s/blog_539a3a3201011ld9.htmlsource: https://jorudolph.wordpress.com/2012/02/03/opencl-work-item-ids-globalgrouplocal/global ID: image all the work items (AMD) or thread...原创 2018-05-29 06:02:43 · 414 阅读 · 0 评论