From fa5f848c23042da4d71c12994b03b46818bf5b70 Mon Sep 17 00:00:00 2001 From: "Andrew M. B. Boktor" Date: Wed, 16 May 2012 15:06:13 -0800 Subject: Re-wrote the intermediate structure for the output of cuobjdump using C++ classes Some changes to remove warnings [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12609] --- cuobjdump_to_ptxplus/cuobjdump_to_ptxplus.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cuobjdump_to_ptxplus/cuobjdump_to_ptxplus.cc') diff --git a/cuobjdump_to_ptxplus/cuobjdump_to_ptxplus.cc b/cuobjdump_to_ptxplus/cuobjdump_to_ptxplus.cc index 1d1d6b3..570ebf5 100644 --- a/cuobjdump_to_ptxplus/cuobjdump_to_ptxplus.cc +++ b/cuobjdump_to_ptxplus/cuobjdump_to_ptxplus.cc @@ -57,6 +57,10 @@ void output(const char * text) fprintf(ptxplus_out, text); } +void output(const std::string text) { + output(text.c_str()); +} + std::string fileToString(const char * fileName) { ifstream fileStream(fileName, ios::in); string text, line; -- cgit v1.3