summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorTony Gutierrez <anthony.gutierrez@amd.com>2017-01-19 11:59:34 -0500
committerTony Gutierrez <anthony.gutierrez@amd.com>2017-01-19 11:59:34 -0500
commit1961a942f395d0b880461106a09761b92e2d53f6 (patch)
treebc70ed383e9f04cc28d3742eaeab6091d0b45929 /SConstruct
parent42044645b9e3a60bd77a84de6c356033d6133004 (diff)
downloadgem5-1961a942f395d0b880461106a09761b92e2d53f6.tar.xz
ruby: guard usage of GPUCoalescer code in Profiler
the GPUCoalescer code is used in the ruby profiler regardless of whether or not the coalescer code has been compiled, which can lead to link/run time errors. here we add #ifdefs to guard the usage of GPUCoalescer code. eventually we should refactor this code to use probe points.
Diffstat (limited to 'SConstruct')
-rwxr-xr-xSConstruct3
1 files changed, 3 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index f8eac47e6..8a72419b4 100755
--- a/SConstruct
+++ b/SConstruct
@@ -1502,6 +1502,9 @@ for variant_path in variant_paths:
"target ISA combination"
env['USE_KVM'] = False
+ if env['BUILD_GPU']:
+ env.Append(CPPDEFINES=['BUILD_GPU'])
+
# Warn about missing optional functionality
if env['USE_KVM']:
if not main['HAVE_PERF_ATTR_EXCLUDE_HOST']: