Use only 4 jobs to convert prototxt to onnx (#7597)
This commit is contained in:
parent
0b4ae86001
commit
3b4c46ea80
@ -2,6 +2,8 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
set_property(GLOBAL PROPERTY JOB_POOLS four_jobs=4)
|
||||
|
||||
function(ov_model_convert SRC DST OUT)
|
||||
set(onnx_gen_script ${OpenVINO_SOURCE_DIR}/ngraph/test/models/onnx/onnx_prototxt_converter.py)
|
||||
|
||||
@ -43,6 +45,7 @@ function(ov_model_convert SRC DST OUT)
|
||||
"${SRC}/${in_file}" ${full_out_name}
|
||||
DEPENDS ${onnx_gen_script} "${SRC}/${in_file}"
|
||||
COMMENT "Generate ${rel_out_name}"
|
||||
JOB_POOL four_jobs
|
||||
WORKING_DIRECTORY "${model_source_dir}")
|
||||
else()
|
||||
add_custom_command(OUTPUT ${full_out_name}
|
||||
@ -50,6 +53,7 @@ function(ov_model_convert SRC DST OUT)
|
||||
"${SRC}/${in_file}" ${full_out_name}
|
||||
DEPENDS ${onnx_gen_script} "${SRC}/${in_file}"
|
||||
COMMENT "Copy ${rel_out_name}"
|
||||
JOB_POOL four_jobs
|
||||
WORKING_DIRECTORY "${model_source_dir}")
|
||||
endif()
|
||||
list(APPEND files "${full_out_name}")
|
||||
|
Loading…
Reference in New Issue
Block a user