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 77f2a73 commit d2de8cfCopy full SHA for d2de8cf
tools/gen_ort_dockerfile.py
@@ -353,7 +353,8 @@ def dockerfile_for_linux(output_file):
353
)
354
355
df += """
356
-RUN ./build.sh ${{COMMON_BUILD_ARGS}} --parallel $( nproc --all ) --update --build {}
+RUN N_PARALLEL_JOBS=$( [[ $(nproc --all) < 64 ]] && echo $(nproc --all) || echo 64 ) && \\
357
+ ./build.sh ${{COMMON_BUILD_ARGS}} --parallel ${N_PARALLEL_JOBS} --update --build {}
358
""".format(
359
ep_flags
360
0 commit comments