Class RandomVariableOpenCL.DeviceMemoryPool

  • Enclosing class:
    RandomVariableOpenCL

    public static class RandomVariableOpenCL.DeviceMemoryPool
    extends Object
    A memory pool for the GPU vectors. The memory pool is provided for vectors of different length. Implementation details: The map vectorsToRecycleReferenceQueueMap maps each vector length to a ReferenceQueue<DevicePointerReference> holding reference of recycleable vectors. The map vectorsInUseReferenceMap maps this weak reference to a Cuda vector.
    Author:
    Christian Fries