summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-06-12 18:03:35 -0400
committerMengchi Zhang <[email protected]>2019-06-12 18:03:35 -0400
commit7ac6034a99b52d09db7ef07bc008b8f6b039f929 (patch)
tree67110261a40f4c28426a32f60cd57a63dc833e53
parent7d02cbb061485db38ed8e5f6bf06c9b2fa40eed2 (diff)
Move print_ptx_file
Signed-off-by: Mengchi Zhang <[email protected]>
-rw-r--r--libcuda/gpgpu_context.h1
-rw-r--r--src/cuda-sim/ptx_loader.cc2
2 files changed, 2 insertions, 1 deletions
diff --git a/libcuda/gpgpu_context.h b/libcuda/gpgpu_context.h
index d3db1ad..dbc3140 100644
--- a/libcuda/gpgpu_context.h
+++ b/libcuda/gpgpu_context.h
@@ -19,6 +19,7 @@ class gpgpu_context {
class symbol_table *gpgpu_ptx_sim_load_ptx_from_filename( const char *filename );
void gpgpu_ptx_info_load_from_filename( const char *filename, unsigned sm_version);
void gpgpu_ptxinfo_load_from_string( const char *p_for_info, unsigned source_num, unsigned sm_version=20, int no_of_ptx=0 );
+ void print_ptx_file( const char *p, unsigned source_num, const char *filename );
};
gpgpu_context* GPGPU_Context();
diff --git a/src/cuda-sim/ptx_loader.cc b/src/cuda-sim/ptx_loader.cc
index 2a6d930..38597e0 100644
--- a/src/cuda-sim/ptx_loader.cc
+++ b/src/cuda-sim/ptx_loader.cc
@@ -81,7 +81,7 @@ void ptx_reg_options(option_parser_t opp)
"0");
}
-void print_ptx_file( const char *p, unsigned source_num, const char *filename )
+void gpgpu_context::print_ptx_file( const char *p, unsigned source_num, const char *filename )
{
printf("\nGPGPU-Sim PTX: file _%u.ptx contents:\n\n", source_num );
char *s = strdup(p);