6 #ifndef OPENMPCD_CUDA_IMPLEMENTATIONDETAILS_DEVICEBUFFER_HPP
7 #define OPENMPCD_CUDA_IMPLEMENTATIONDETAILS_DEVICEBUFFER_HPP
20 : elementCount(elementCount_)
26 DeviceMemoryManager::allocateMemoryUnregistered(
27 &pointer,
sizeof(T) * elementCount);
33 DeviceMemoryManager::freeMemoryUnregistered(pointer);
59 DeviceMemoryManager::copyElementsFromDeviceToDevice(
60 src, pointer, getElementCount());
66 DeviceMemoryManager::zeroMemory(getPointer(), getElementCount());
73 #endif //OPENMPCD_CUDA_IMPLEMENTATIONDETAILS_DEVICEBUFFER_HPP