Skip to content
Snippets Groups Projects

Replace PyCuda with CuPy

Merged Markus Holzer requested to merge holzer/pystencils:cupy into master
Viewing commit 7e03869a
Show latest version
1 file
+ 2
1
Preferences
Compare changes
@@ -442,4 +442,5 @@ class SerialDataHandling(DataHandling):
@@ -442,4 +442,5 @@ class SerialDataHandling(DataHandling):
continue
continue
np.copyto(arr_contents, file_contents[arr_name])
np.copyto(arr_contents, file_contents[arr_name])
if synchronise_data:
if synchronise_data:
self.to_cpu(arr_name)
if arr_name in self.gpu_arrays.keys():
 
self.to_gpu(arr_name)