27 # ifdef EIGEN_RUNTIME_NO_MALLOC
29 &&
"Eigen::internal::is_malloc_allowed() at the caller site and tvm::utils::is_malloc_allowed are differing. "
30 "This might be due to the fact that Eigen::internal::set_is_alloc_allowed was called independently/instead "
31 "of tvm::utils::set_is_malloc_allowed in the current program/library.");
41 # ifdef EIGEN_RUNTIME_NO_MALLOC
85 #define TVM_TEMPORARY_ALLOW_EIGEN_MALLOC(x) \
86 tvm::utils::override_is_malloc_allowed(true); \
88 tvm::utils::restore_is_malloc_allowed();
#define TVM_DLLAPI
Definition: api.h:35
TVM_DLLAPI void override_is_malloc_allowed_(bool v)
TVM_DLLAPI void restore_is_malloc_allowed_()
void check_malloc_coherency()
Definition: memoryChecks.h:25
TVM_DLLAPI bool is_malloc_allowed_()
void enforce_malloc_coherency()
Definition: memoryChecks.h:39
TVM_DLLAPI bool set_is_malloc_allowed_(bool allow)
void restore_is_malloc_allowed()
Definition: memoryChecks.h:77
bool set_is_malloc_allowed(bool allow)
Definition: memoryChecks.h:55
void override_is_malloc_allowed(bool allow)
Definition: memoryChecks.h:69
bool is_malloc_allowed()
Definition: memoryChecks.h:48