Skip to content

Commit 1a32b95

Browse files
committed
examples: suppress a TBB warning
After including a TBB header to examples_utils.hpp the compiler starts issuing a warning about __thiscall when examples are built by DPC++ compiler on Windows (oneDNN SYCL runtime).
1 parent bd0389d commit 1a32b95

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/CMakeLists.txt.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ else()
116116
endif()
117117

118118
if(WIN32 AND DNNL_WITH_SYCL)
119+
# XXX: SYCL does not like __thiscall convention coming from TBB,
120+
# suppress warnings for now.
121+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-ignored-attributes")
122+
119123
# XXX: compiler always pulls in release C++ runtime by default, until
120124
# this is fixed we have to explicitly drop release C++ runtime for
121125
# debug build types.

0 commit comments

Comments
 (0)