示例#1
0
 def kernel(a):
     from pycuda.cumath import fabs
     return my_max(fabs(a))
示例#2
0
 def kernel(a):
     from pycuda.cumath import fabs
     return my_max(fabs(a))
示例#3
0
 def my_max(vec):
     from pycuda.gpuarray import max as my_max
     return my_max(vec).get()
示例#4
0
 def my_max(vec):
     from pycuda.gpuarray import max as my_max
     return my_max(vec).get()