blob: fbf9109db262129ff5fb1ae3bd9f636d4cc53b90 [file] [log] [blame]
#ifndef THC_DEVICE_ALLOCATOR_INC
#define THC_DEVICE_ALLOCATOR_INC
#if __cplusplus >= 201103L
#include <mutex>
#endif
#include "THCGeneral.h"
#include "THCStream.h"
THC_API THCDeviceAllocator* THCCachingAllocator_get(void);
THC_API void* THCCachingAllocator_getBaseAllocation(void *ptr, size_t *size);
THC_API void THCCachingAllocator_recordStream(void *ptr, THCStream* stream);
#if __cplusplus >= 201103L
THC_API std::mutex* THCCachingAllocator_getCudaFreeMutex();
#endif
#endif