You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PixelData<ImageType> image_temp(input_image, false/* don't copy */, true/* pinned memory */); // global image variable useful for passing between methods, or re-using memory (should be the only full sized copy of the image)
407
+
PixelData<ImageType> image_temp(input_image, false/* don't copy */, true/* pinned memory */); // global image variable useful for passing between methods, or re-using memory (should be the only full-size copy of the image)
// Get data from GPU - first we need to get number of particles to resize y_vec and have idea how many particles to copy - that is why we need to synchronize first time
479
+
giga.copyDtoH();
480
+
checkCuda(cudaStreamSynchronize(iStream));
487
481
488
-
// Trim buffer to calculated size (initially it is allocated to worst case - same number of particles as pixels in input image)
482
+
// Start copying the data from GPU to CPU
483
+
xz_end_vec_cuda.copyD2H();
484
+
// Trim buffer to calculated size (initially it is allocated to worst case - same number of particles as pixels in input image) and copy data from GPU
489
485
y_vec.resize(iAprInfo.total_number_particles);
490
-
486
+
// Copy y_vec from GPU to CPU and synchronize last time - it is needed before we copy data to CPU structures
0 commit comments