summaryrefslogtreecommitdiff
path: root/src/gpu-compute
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2016-03-04 20:14:10 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2016-03-04 20:14:10 -0500
commit8faeec44a69ee56ca9252cd36a2bb8e22d02bddd (patch)
tree7ec23df429d457f9f9039a7118091daeb39fe592 /src/gpu-compute
parent4f303785dc3001a8c952f19540e16a9b437278f2 (diff)
downloadgem5-8faeec44a69ee56ca9252cd36a2bb8e22d02bddd.tar.xz
base: Fix gpu-compute output stream creation
Match changes in output stream.
Diffstat (limited to 'src/gpu-compute')
-rw-r--r--src/gpu-compute/compute_unit.cc2
-rw-r--r--src/gpu-compute/gpu_tlb.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu-compute/compute_unit.cc b/src/gpu-compute/compute_unit.cc
index 63f3e8fb5..1387f9b56 100644
--- a/src/gpu-compute/compute_unit.cc
+++ b/src/gpu-compute/compute_unit.cc
@@ -1620,7 +1620,7 @@ ComputeUnit::CUExitCallback::process()
{
if (computeUnit->countPages) {
std::ostream *page_stat_file =
- simout.create(computeUnit->name().c_str());
+ simout.create(computeUnit->name().c_str())->stream();
*page_stat_file << "page, wavefront accesses, workitem accesses" <<
std::endl;
diff --git a/src/gpu-compute/gpu_tlb.cc b/src/gpu-compute/gpu_tlb.cc
index de005fd04..7a4f883f6 100644
--- a/src/gpu-compute/gpu_tlb.cc
+++ b/src/gpu-compute/gpu_tlb.cc
@@ -1709,7 +1709,7 @@ namespace X86ISA
// print per page statistics to a separate file (.csv format)
// simout is the gem5 output directory (default is m5out or the one
// specified with -d
- page_stat_file = simout.create(name().c_str());
+ page_stat_file = simout.create(name().c_str())->stream();
// print header
*page_stat_file << "page,max_access_distance,mean_access_distance, "