Distinguishing between internal memory allocation/deallocation from explicit user memory allocation/deallocation.

This commit is contained in:
Mehdi Goli
2018-08-01 11:56:30 +01:00
parent edf46bd7a2
commit d7a8414848
6 changed files with 34 additions and 13 deletions

View File

@@ -105,6 +105,14 @@ struct ThreadPoolDevice {
internal::aligned_free(buffer);
}
EIGEN_STRONG_INLINE void* allocate_temp(size_t num_bytes) const {
return allocate(num_bytes);
}
EIGEN_STRONG_INLINE void deallocate_temp(void* buffer) const {
deallocate(buffer);
}
EIGEN_STRONG_INLINE void memcpy(void* dst, const void* src, size_t n) const {
::memcpy(dst, src, n);
}