Skip to content

Commit d09f86f

Browse files
committed
fix parallel in cmake
1 parent b57dba8 commit d09f86f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

3rdparty/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
add_subdirectory(googletest)
2+
3+
set(DNNL_BUILD_EXAMPLES OFF CACHE BOOL "Build examples")
4+
set(DNNL_BUILD_TESTS OFF CACHE BOOL "Build tests")
5+
set(DNNL_CPU_RUNTIME "OMP" CACHE STRING "CPU runtime")
6+
set(DNNL_GRAPH_DISABLE ON CACHE BOOL "Disable dnnl graph")
7+
8+
set(CMAKE_BUILD_PARALLEL_LEVEL 2 CACHE STRING "Parallel build level")
9+
210
add_subdirectory(oneDNN)
311

412
# Unified TBB Configuration

0 commit comments

Comments
 (0)