GEOS-DEV / LvArray

Portable HPC Containers (C++)
BSD 3-Clause "New" or "Revised" License
47 stars 10 forks source link

Feature/add freeOnDevice() method #298

Closed XL64 closed 2 months ago

XL64 commented 1 year ago

Add freeOnDevice() method to allow freeing memory from GPU before the object destruction. This method is useful to remove temporary working data from GPU space, freeing GPU memory. Add logger using callback for free/allocate when activated.

rrsettgast commented 4 months ago

@wrtobin Are you ok with this in its current form?

wrtobin commented 4 months ago

@corbett5 Randy and I discussed that particular point and IIRC we decided it wasn't a necessary restriction. My concern was primarily preventing users from erroneously de- and re-allocating on device and losing performance as a result.

rrsettgast commented 2 months ago

@wrtobin @corbett5 Can you approve this?