[gem5-dev] [S] Change in gem5/gem5[develop]: fastmodel: use global option 'num_jobs' instead of hardcoded number

2022-04-07 Thread Chia-You Chen (Gerrit) via gem5-dev
Chia-You Chen has submitted this change. (  
https://gem5-review.googlesource.com/c/public/gem5/+/58689 )


Change subject: fastmodel: use global option 'num_jobs' instead of  
hardcoded number

..

fastmodel: use global option 'num_jobs' instead of hardcoded number

Change-Id: I2d3f0855c8475cd44b1012fddf6b695621b2347f
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/58689
Reviewed-by: Gabe Black 
Maintainer: Gabe Black 
Tested-by: kokoro 
---
M src/arch/arm/fastmodel/SConscript
1 file changed, 15 insertions(+), 1 deletion(-)

Approvals:
  Gabe Black: Looks good to me, approved; Looks good to me, approved
  kokoro: Regressions pass




diff --git a/src/arch/arm/fastmodel/SConscript  
b/src/arch/arm/fastmodel/SConscript

index bfe7e97..23ddb84 100644
--- a/src/arch/arm/fastmodel/SConscript
+++ b/src/arch/arm/fastmodel/SConscript
@@ -363,10 +363,11 @@
 self.rpaths = [simgen_dir, project_file_dir]
 self.log = gen_dir.File('build_%s.log' % tlc)
 self.simgen_cmd = env.subst('${CONF["SIMGEN"]} -p %s '
-'--configuration %s -b --verbose off --num-build-cpus 100 '
+'--configuration %s -b --verbose off --num-build-cpus %d '
 '--build-dir %s >%s') % \
 (shlex.quote(project_file.srcnode().abspath),
  shlex.quote(config_name),
+ GetOption('num_jobs'),
  shlex.quote(simgen_dir.abspath),
  shlex.quote(self.log.abspath))


--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/58689
To unsubscribe, or for help writing mail filters, visit  
https://gem5-review.googlesource.com/settings


Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I2d3f0855c8475cd44b1012fddf6b695621b2347f
Gerrit-Change-Number: 58689
Gerrit-PatchSet: 3
Gerrit-Owner: Chia-You Chen 
Gerrit-Reviewer: Chia-You Chen 
Gerrit-Reviewer: Earl Ou 
Gerrit-Reviewer: Gabe Black 
Gerrit-Reviewer: kokoro 
Gerrit-CC: Gabe Black 
Gerrit-MessageType: merged
___
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-dev] [S] Change in gem5/gem5[develop]: fastmodel: use global option 'num_jobs' instead of hardcoded number

2022-04-06 Thread Chia-You Chen (Gerrit) via gem5-dev
Chia-You Chen has uploaded this change for review. (  
https://gem5-review.googlesource.com/c/public/gem5/+/58689 )



Change subject: fastmodel: use global option 'num_jobs' instead of  
hardcoded number

..

fastmodel: use global option 'num_jobs' instead of hardcoded number

Change-Id: I2d3f0855c8475cd44b1012fddf6b695621b2347f
---
M src/arch/arm/fastmodel/SConscript
1 file changed, 11 insertions(+), 1 deletion(-)



diff --git a/src/arch/arm/fastmodel/SConscript  
b/src/arch/arm/fastmodel/SConscript

index bfe7e97..a89e0dc 100644
--- a/src/arch/arm/fastmodel/SConscript
+++ b/src/arch/arm/fastmodel/SConscript
@@ -363,10 +363,11 @@
 self.rpaths = [simgen_dir, project_file_dir]
 self.log = gen_dir.File('build_%s.log' % tlc)
 self.simgen_cmd = env.subst('${CONF["SIMGEN"]} -p %s '
-'--configuration %s -b --verbose off --num-build-cpus 100 '
+'--configuration %s -b --verbose off --num-build-cpus %d '
 '--build-dir %s >%s') % \
 (shlex.quote(project_file.srcnode().abspath),
  shlex.quote(config_name),
+GetOption('num_jobs'),
  shlex.quote(simgen_dir.abspath),
  shlex.quote(self.log.abspath))


--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/58689
To unsubscribe, or for help writing mail filters, visit  
https://gem5-review.googlesource.com/settings


Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I2d3f0855c8475cd44b1012fddf6b695621b2347f
Gerrit-Change-Number: 58689
Gerrit-PatchSet: 1
Gerrit-Owner: Chia-You Chen 
Gerrit-MessageType: newchange
___
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s