1 #pragma once 2 3 #include <mkl_types.h> 4 5 namespace at::native { 6 7 // Since size of MKL_LONG varies on different platforms (linux 64 bit, windows 8 // 32 bit), we need to programmatically calculate the max. 9 constexpr int64_t MKL_LONG_MAX = ((1LL << (sizeof(MKL_LONG) * 8 - 2)) - 1) * 2 + 1; 10 11 } // namespace at::native 12