Skip to content

Commit 0289539

Browse files
committed
fix parallel in cmake
1 parent 26e382f commit 0289539

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

3rdparty/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ set(DNNL_CPU_RUNTIME "OMP" CACHE STRING "CPU runtime (OMP, TBB, SEQ)")
55
set(DNNL_BUILD_EXAMPLES OFF CACHE BOOL "Build examples")
66
set(DNNL_BUILD_TESTS OFF CACHE BOOL "Build tests")
77
set(DNNL_ENABLE_CONCURRENT_EXEC ON CACHE BOOL "Enable concurrent execution")
8-
add_subdirectory(oneDNN)
98

109
if(CMAKE_BUILD_PARALLEL_LEVEL)
1110
set(DNNL_BUILD_PARALLEL ${CMAKE_BUILD_PARALLEL_LEVEL})
1211
else()
13-
set(DNNL_BUILD_PARALLEL 2) # Ограничение по умолчанию
12+
set(DNNL_BUILD_PARALLEL 2)
1413
endif()
14+
add_subdirectory(oneDNN)
1515

1616
# Unified TBB Configuration
1717
option(TBB_TEST "Build TBB tests" OFF)

0 commit comments

Comments
 (0)