当前位置: 首页 > >

pyopencl architecture

发布时间:

https://karthikhegde.blogspot.com/2013/09/hope-you-liked-previous-introductory.html
memory)

buf=cl.Buffer(ctx,mem_flags,size,hostbuf=None)


Programs and Kernels

prg=cl.Program(ctx,src)
# functions with __kernel attribute can be invoked from host
# prg.build(options="",devices=None)
# kernel=prg.kernel_name

? ? the program objects are specified as:


kernel(queue,(Gx,Gy,Gz),(Sx,Sy,Sz),arg, ..., wait_for=None)












友情链接: