memPoolTrimTo

external fun memPoolTrimTo(pool: Long, minBytesToKeep: Int): Int

Tries to release memory back to the OS. (cuMemPoolTrimTo)

Parameters

pool

The memory pool to trim

minBytesToKeep

If the pool has less than minBytesToKeep reserved, the TrimTo operation is a no-op. Otherwise the pool will be guaranteed to have at least minBytesToKeep bytes reserved after the operation.