diff options
| author | Mengchi Zhang <[email protected]> | 2019-06-12 23:30:14 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-06-12 23:30:14 -0400 |
| commit | 74923ff9a2c21b72a858a8ccfbb230b1fccef81d (patch) | |
| tree | 621cad18ed328712e256f9c1d762b59587e08603 /libcuda/gpgpu_context.h | |
| parent | aa5f3aaeaa645f9d578fdadad25321e95a5f2058 (diff) | |
| parent | 632bdaab79b9c1fd51ef8152aa00209f76c03101 (diff) | |
Merge pull request #17 from echoedit/dev
Dev
Diffstat (limited to 'libcuda/gpgpu_context.h')
| -rw-r--r-- | libcuda/gpgpu_context.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libcuda/gpgpu_context.h b/libcuda/gpgpu_context.h index 16626eb..fa5d02b 100644 --- a/libcuda/gpgpu_context.h +++ b/libcuda/gpgpu_context.h @@ -1,19 +1,31 @@ #ifndef __gpgpu_context_h__ #define __gpgpu_context_h__ #include "cuda_api_object.h" +#include "../src/cuda-sim/ptx_loader.h" +#include "../src/cuda-sim/ptx_parser.h" class gpgpu_context { public: gpgpu_context() { + g_global_allfiles_symbol_table = NULL; api = new cuda_runtime_api(); + ptxinfo = new ptxinfo_data(); + ptx_parser = new ptx_recognizer(); } // global list + symbol_table *g_global_allfiles_symbol_table; // objects pointers for each file cuda_runtime_api* api; + ptxinfo_data* ptxinfo; + ptx_recognizer* ptx_parser; // member function list void cuobjdumpParseBinary(unsigned int handle); class symbol_table *gpgpu_ptx_sim_load_ptx_from_string( const char *p, unsigned source_num ); 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 ); + class symbol_table* init_parser(const char*); }; gpgpu_context* GPGPU_Context(); |
