Skip to content

Commit 8cf3438

Browse files
committed
fix parallel in cmake
1 parent 0289539 commit 8cf3438

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

3rdparty/CMakeLists.txt

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
add_subdirectory(googletest)
22

3-
set(DNNL_BUILD_THREADPOOL_CPU ON CACHE BOOL "Build with Threadpool CPU support")
4-
set(DNNL_CPU_RUNTIME "OMP" CACHE STRING "CPU runtime (OMP, TBB, SEQ)")
53
set(DNNL_BUILD_EXAMPLES OFF CACHE BOOL "Build examples")
6-
set(DNNL_BUILD_TESTS OFF CACHE BOOL "Build tests")
7-
set(DNNL_ENABLE_CONCURRENT_EXEC ON CACHE BOOL "Enable concurrent execution")
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") # ОТКЛЮЧИТЕ GRAPH!
87

9-
if(CMAKE_BUILD_PARALLEL_LEVEL)
10-
set(DNNL_BUILD_PARALLEL ${CMAKE_BUILD_PARALLEL_LEVEL})
11-
else()
12-
set(DNNL_BUILD_PARALLEL 2)
13-
endif()
14-
add_subdirectory(oneDNN)
8+
set(CMAKE_BUILD_PARALLEL_LEVEL 2 CACHE STRING "Parallel build level")
159

1610
# Unified TBB Configuration
1711
option(TBB_TEST "Build TBB tests" OFF)

0 commit comments

Comments
 (0)