10 #ifndef EIGEN_CXX11_TENSOR_TENSOR_DEVICE_DEFAULT_H 11 #define EIGEN_CXX11_TENSOR_TENSOR_DEVICE_DEFAULT_H 18 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
void* allocate(
size_t num_bytes)
const {
19 return internal::aligned_malloc(num_bytes);
21 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
void deallocate(
void* buffer)
const {
22 internal::aligned_free(buffer);
24 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
void memcpy(
void* dst,
const void* src,
size_t n)
const {
25 ::memcpy(dst, src, n);
27 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
void memcpyHostToDevice(
void* dst,
const void* src,
size_t n)
const {
30 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
void memcpyDeviceToHost(
void* dst,
const void* src,
size_t n)
const {
33 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
void memset(
void* buffer,
int c,
size_t n)
const {
34 ::memset(buffer, c, n);
37 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
size_t numThreads()
const {
47 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
size_t firstLevelCacheSize()
const {
57 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
size_t lastLevelCacheSize()
const {
63 return firstLevelCacheSize();
67 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
int majorDeviceVersion()
const {
74 return __CUDA_ARCH__ / 100;
81 #endif // EIGEN_CXX11_TENSOR_TENSOR_DEVICE_DEFAULT_H Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:85
std::ptrdiff_t l3CacheSize()
Definition: GeneralBlockPanelKernel.h:2130
Definition: TensorDeviceDefault.h:17
std::ptrdiff_t l1CacheSize()
Definition: GeneralBlockPanelKernel.h:2111