Skip to content
Snippets Groups Projects

Extend testsuit

Merged Markus Holzer requested to merge holzer/pystencils:Extend_testsuit into master
All threads resolved!
Viewing commit c6d51b6b
Show latest version
3 files
+ 23
10
Preferences
Compare changes
Files
3
@@ -28,15 +28,15 @@ class PyCudaArrayHandler:
return gpuarray.empty(shape, dtype)
@staticmethod
def to_gpu(array: gpuarray):
def to_gpu(array):
return gpuarray.to_gpu(array)
@staticmethod
def upload(array: gpuarray, numpy_array):
def upload(array, numpy_array):
array.set(numpy_array)
@staticmethod
def download(array: gpuarray, numpy_array):
def download(array, numpy_array):
array.get(numpy_array)
def randn(self, shape, dtype=np.float64):