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