def sum_parts(data):
 arr = np.asarray(data, dtype=np.float32)
 out = cuda.device_array(1, dtype=np.float32)
 gpu_single_block_sum[(1, gpu_block_sum_max_blockdim)](arr, out)
 return out.copy_to_host()[0]

def sum_parts ( data ) : arr = np . asarray ( data , dtype = np . float32 ) out = cuda . device_array ( 1 , dtype = np . float32 ) gpu_single_block_sum [ ( 1 , gpu_block_sum_max_blockdim ) ] ( arr , out ) return out . copy_to_host ( ) [ 0 ]
driver for gpu_single_block_sum kernel .