dirac-institute / kbmod

KBMOD (Kernel-Based Moving Object Detection)
BSD 2-Clause "Simplified" License
40 stars 14 forks source link

Use GPU arrays for all on gpu memory #640

Closed jeremykubica closed 3 weeks ago

jeremykubica commented 1 month ago

This PR makes a few related changes: 1) Allow move semantics for GPUArray so we can return them from a creator function. 2) Create PSF.copy_to_gpu() function that allocates a GPU array and copies the data. 3) Change the remaining GPU memory functions to use GPUArray so that they pick up the error checking and validation. 4) Clean up cuda_errors.h which is no longer used.