We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8c67b9 commit d58ac41Copy full SHA for d58ac41
examples/CMakeLists.txt
@@ -90,6 +90,17 @@ if(DNNL_CPU_SYCL)
90
endforeach()
91
endif()
92
93
+# Do not build C examples for TBB threading runtime because
94
+# TBB doesn't provide C API to do explicit finalization.
95
+if (DNNL_CPU_RUNTIME STREQUAL "TBB" OR DNNL_CPU_SYCL)
96
+ foreach(f ${sources})
97
+ get_filename_component(fname ${f} NAME)
98
+ if(${fname} MATCHES ".*\\.c$")
99
+ list(REMOVE_ITEM sources "${f}")
100
+ endif()
101
+ endforeach()
102
+endif()
103
+
104
foreach(src ${sources})
105
file(RELATIVE_PATH src_rel_path ${CMAKE_CURRENT_SOURCE_DIR} ${src})
106
string(REGEX REPLACE "[/_\\.]" "-" example_name ${src_rel_path})
0 commit comments