Skip to content

Commit

Permalink
ENH: Expose flag to release GPU memory when dirty
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasGandel committed Sep 17, 2024
1 parent e1e5eb8 commit 07b6a32
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/itkCudaDataManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ class CudaCommon_EXPORT CudaDataManager : public Object
void
SetGPUDirtyFlag(bool isDirty);

/** Controls whether GPU memory should be released when dirty. On by default.
* When turning it off, one must call Free() to release the GPU memory. */
itkGetConstMacro(ReleaseDirtyGPUBuffer, bool);
itkSetMacro(ReleaseDirtyGPUBuffer, bool);
itkBooleanMacro(ReleaseDirtyGPUBuffer);

/** Make GPU up-to-date and mark CPU as dirty.
* Call this function when you want to modify CPU data */
void
Expand Down

0 comments on commit 07b6a32

Please sign in to comment.