scripts/adi_project_xilinx: Set number of parallel OOC jobs through environment variable
parent
30b491fff7
commit
a3e049ae03
|
@ -17,6 +17,14 @@ if {[info exists ::env(ADI_USE_OOC_SYNTHESIS)]} {
|
||||||
set ADI_USE_OOC_SYNTHESIS 1
|
set ADI_USE_OOC_SYNTHESIS 1
|
||||||
} elseif {![info exists ADI_USE_OOC_SYNTHESIS]} {
|
} elseif {![info exists ADI_USE_OOC_SYNTHESIS]} {
|
||||||
set ADI_USE_OOC_SYNTHESIS 0
|
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
|
## Set to enable incremental compilation
|
||||||
|
@ -269,9 +277,10 @@ proc adi_project_run {project_name} {
|
||||||
|
|
||||||
global ADI_POWER_OPTIMIZATION
|
global ADI_POWER_OPTIMIZATION
|
||||||
global ADI_USE_OOC_SYNTHESIS
|
global ADI_USE_OOC_SYNTHESIS
|
||||||
|
global ADI_MAX_OOC_JOBS
|
||||||
|
|
||||||
if {$ADI_USE_OOC_SYNTHESIS == 1} {
|
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 {
|
} else {
|
||||||
launch_runs synth_1
|
launch_runs synth_1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue