Skip to content

Commit 27ff9bc

Browse files
ilya-lavrenovazhai219
authored andcommitted
[FIX] Fixed compilation for 32bits
1 parent b69ecc3 commit 27ff9bc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ else()
8282
endif()
8383

8484
if (NOT CMAKE_SIZEOF_VOID_P EQUAL 8)
85-
message(FATAL_ERROR "oneDNN supports 64 bit platforms only")
85+
message(WARNING "oneDNN officially supports 64 bit platforms only")
8686
endif()
8787

8888
# Set the target architecture.

src/common/math_utils.hpp

+3
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ inline int ilog2q(size_t v) {
9393
p += pw; \
9494
} \
9595
} while (0)
96+
97+
#if INTPTR_MAX == INT64_MAX
9698
CP(32);
99+
#endif
97100
CP(16);
98101
CP(8);
99102
CP(4);

src/common/utils.hpp

-3
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ namespace impl {
6464
T(const T &) = delete; \
6565
T &operator=(const T &) = delete;
6666

67-
// Sanity check for 64 bits
68-
static_assert(sizeof(void *) == 8, "oneDNN supports 64-bit architectures only");
69-
7067
#define CHECK(f) \
7168
do { \
7269
dnnl::impl::status_t _status_ = f; \

0 commit comments

Comments
 (0)