Mahyar Samani has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/31861 )
Change subject: scons: Separate thermal build flag
......................................................................
scons: Separate thermal build flag
Change-Id: Iad502dbdbc8665fe9c744451b1b67cce25f6a65d
---
M ext/dramsim3/SConscript
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/ext/dramsim3/SConscript b/ext/dramsim3/SConscript
index 0c6c971..bc2333d 100644
--- a/ext/dramsim3/SConscript
+++ b/ext/dramsim3/SConscript
@@ -41,6 +41,8 @@
Import('main')
+thermal = False
+
# See if we got a cloned DRAMSim3 repo as a subdirectory and set the
# HAVE_DRAMSIM flag accordingly
if not os.path.exists(Dir('.').srcnode().abspath + '/DRAMSim3'):
@@ -50,16 +52,17 @@
# We have got the folder, so add the library and build the wrappers
main['HAVE_DRAMSIM3'] = True
-# Add the appropriate files. We leave out the trace driven simulator
-dram_files = []
dramsim_path = os.path.join(Dir('#').abspath, 'ext/dramsim3/DRAMSim3')
-superlu_path = os.path.join(dramsim_path, 'ext/SuperLU_MT_3.1/lib')
-
-
-main.Prepend(CPPPATH=Dir('.'))
-main.Append(LIBS=['dramsim3', 'superlu_mt_OPENMP', 'm', 'f77blas',
- 'atlas', 'gomp'],
- LIBPATH=[dramsim_path, superlu_path])
+if thermal:
+ superlu_path = os.path.join(dramsim_path, 'ext/SuperLU_MT_3.1/lib')
+ main.Prepend(CPPPATH=Dir('.'))
+ main.Append(LIBS=['dramsim3', 'superlu_mt_OPENMP', 'm', 'f77blas',
+ 'atlas', 'gomp'],
+ LIBPATH=[dramsim_path, superlu_path])
+else:
+ main.Prepend(CPPPATH=Dir('.'))
+ main.Append(LIBS=['dramsim3'],
+ LIBPATH=[dramsim_path])
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/31861
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: Iad502dbdbc8665fe9c744451b1b67cce25f6a65d
Gerrit-Change-Number: 31861
Gerrit-PatchSet: 1
Gerrit-Owner: Mahyar Samani <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s