Skip to content

Commit 495b91f

Browse files
committed
gtest: cmake: add workaround for ICC bug in backward_data and backward_weights tests
test cases that trigger exceptions are mishandled by Intel Compiler 19.1 and result in error/exit-code 0x01. This patch prevents the compiler from optimizing the code.
1 parent a603593 commit 495b91f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/gtests/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ file(GLOB PRIM_TEST_CASES_SRC
9191
if(WIN32 AND ${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel")
9292
set_source_files_properties(
9393
test_convolution_eltwise_forward_x8s8f32s32.cpp
94+
test_convolution_backward_data_f32.cpp
95+
test_convolution_backward_weights_f32.cpp
9496
PROPERTIES COMPILE_FLAGS "/O1")
9597
endif()
9698

0 commit comments

Comments
 (0)