diff options
| author | Mengchi Zhang <[email protected]> | 2019-06-12 01:42:52 -0400 |
|---|---|---|
| committer | Mengchi Zhang <[email protected]> | 2019-06-12 01:42:52 -0400 |
| commit | 9e52c143a883f682c02d81149748cdf8aa5508f7 (patch) | |
| tree | ceaa34447db6adc3f26860d73db61df545ba86f9 /src/cuda-sim/ptx_loader.cc | |
| parent | ba1ed2941753ae8406bc9ec4a0de1eddc6454a1c (diff) | |
Move some function from ptx_loader to gpgpu_context
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/cuda-sim/ptx_loader.cc')
| -rw-r--r-- | src/cuda-sim/ptx_loader.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cuda-sim/ptx_loader.cc b/src/cuda-sim/ptx_loader.cc index f037c34..d7e9b71 100644 --- a/src/cuda-sim/ptx_loader.cc +++ b/src/cuda-sim/ptx_loader.cc @@ -33,6 +33,7 @@ #include <dirent.h> #include <fstream> #include <sstream> +#include "../../libcuda/gpgpu_context.h" /// globals @@ -165,7 +166,7 @@ char* gpgpu_ptx_sim_convert_ptx_and_sass_to_ptxplus(const std::string ptxfilenam } -symbol_table *gpgpu_ptx_sim_load_ptx_from_string( const char *p, unsigned source_num ) +symbol_table *gpgpu_context::gpgpu_ptx_sim_load_ptx_from_string( const char *p, unsigned source_num ) { char buf[1024]; snprintf(buf,1024,"_%u.ptx", source_num ); @@ -200,7 +201,7 @@ symbol_table *gpgpu_ptx_sim_load_ptx_from_string( const char *p, unsigned source return symtab; } -symbol_table *gpgpu_ptx_sim_load_ptx_from_filename( const char *filename ) +symbol_table *gpgpu_context::gpgpu_ptx_sim_load_ptx_from_filename( const char *filename ) { symbol_table *symtab=init_parser(filename); printf("GPGPU-Sim PTX: finished parsing EMBEDDED .ptx file %s\n",filename); |
