From a3e049ae037b927ffcf40551f1d79ee2e1de95fc Mon Sep 17 00:00:00 2001 From: Laszlo Nagy Date: Tue, 22 Jun 2021 08:21:38 +0100 Subject: [PATCH] scripts/adi_project_xilinx: Set number of parallel OOC jobs through environment variable --- projects/scripts/adi_project_xilinx.tcl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/projects/scripts/adi_project_xilinx.tcl b/projects/scripts/adi_project_xilinx.tcl index 39c0320ff..7f2c0e499 100644 --- a/projects/scripts/adi_project_xilinx.tcl +++ b/projects/scripts/adi_project_xilinx.tcl @@ -17,6 +17,14 @@ if {[info exists ::env(ADI_USE_OOC_SYNTHESIS)]} { set ADI_USE_OOC_SYNTHESIS 1 } elseif {![info exists ADI_USE_OOC_SYNTHESIS]} { set ADI_USE_OOC_SYNTHESIS 0 + +} + +## Set number of parallel out of context jobs through environment variable +if {![info exists ::env(ADI_MAX_OOC_JOBS)]} { + set ADI_MAX_OOC_JOBS 4 +} else { + set ADI_MAX_OOC_JOBS $::env(ADI_MAX_OOC_JOBS) } ## Set to enable incremental compilation @@ -269,9 +277,10 @@ proc adi_project_run {project_name} { global ADI_POWER_OPTIMIZATION global ADI_USE_OOC_SYNTHESIS + global ADI_MAX_OOC_JOBS if {$ADI_USE_OOC_SYNTHESIS == 1} { - launch_runs -jobs 4 system_*_synth_1 synth_1 + launch_runs -jobs $ADI_MAX_OOC_JOBS system_*_synth_1 synth_1 } else { launch_runs synth_1 }