File tree 3 files changed +14
-2
lines changed
3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -424,3 +424,6 @@ option(DNNL_AARCH64_USE_ACL "Enables use of AArch64 optimised functions
424
424
This is only supported on AArch64 builds and assumes there is a
425
425
functioning Compute Library build available at the location specified by the
426
426
environment variable ACL_ROOT_DIR." OFF )
427
+
428
+ option (DNNL_XBYAK_NO_EXCEPTION
429
+ "Enables XBYAK_NO_EXCEPTION" ON ) # enabled by default
Original file line number Diff line number Diff line change @@ -123,6 +123,10 @@ if(UNIX)
123
123
endif ()
124
124
endif ()
125
125
126
+ if (DNNL_XBYAK_NO_EXCEPTION)
127
+ add_definitions_with_host_compiler(-DDNNL_XBYAK_NO_EXCEPTION)
128
+ endif ()
129
+
126
130
macro (enable_conditional_compilation4 target )
127
131
if (COMMAND ov_mark_target_as_cc)
128
132
ov_mark_target_as_cc(${target} )
Original file line number Diff line number Diff line change 33
33
/* in order to make selinux happy memory that would be marked with X-bit should
34
34
* be obtained with mmap */
35
35
// #define XBYAK_USE_MMAP_ALLOCATOR
36
- #if !defined(DNNL_ENABLE_EXCEPTIONS) && defined(NDEBUG)
36
+
37
+ // Overwrite ONEDNN XBYAK_NO_EXCEPTION definition.
38
+ // #define XBYAK_NO_EXCEPTION
39
+ // #ifndef NDEBUG
40
+ // #undef XBYAK_NO_EXCEPTION
41
+ // #endif
42
+ #ifdef DNNL_XBYAK_NO_EXCEPTION
37
43
#define XBYAK_NO_EXCEPTION
38
44
#endif
39
-
40
45
#if defined(_MSC_VER) && !defined(__INTEL_COMPILER)
41
46
/* turn off `size_t to other-type implicit casting` warning
42
47
* currently we have a lot of jit-generated instructions that
You can’t perform that action at this time.
0 commit comments