base: Fix gpu-compute output stream creation
authorAndreas Hansson <andreas.hansson@arm.com>
Sat, 5 Mar 2016 01:14:10 +0000 (20:14 -0500)
committerAndreas Hansson <andreas.hansson@arm.com>
Sat, 5 Mar 2016 01:14:10 +0000 (20:14 -0500)
Match changes in output stream.

src/gpu-compute/compute_unit.cc
src/gpu-compute/gpu_tlb.cc

index 63f3e8fb5107c09e62778a1d75202871ea0e18c7..1387f9b5683b35c34894174da172ec1ebb888551 100644 (file)
@@ -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;
index de005fd04fbee11a90f5c8f8187878f14cb02074..7a4f883f6c430c960ad5b3c12416a6f9267220b2 100644 (file)
@@ -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, "