summaryrefslogtreecommitdiff
path: root/libcuda/gpgpu_context.h
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-06-12 13:19:08 -0400
committerMengchi Zhang <[email protected]>2019-06-12 13:19:38 -0400
commit7d02cbb061485db38ed8e5f6bf06c9b2fa40eed2 (patch)
tree03922c5bb793d9dbf74a691467339df67d4abfa9 /libcuda/gpgpu_context.h
parent7a6ff7084c1c65450775b4d58e80f8c789888815 (diff)
Integrate ptxinfo into gpgpu_context
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'libcuda/gpgpu_context.h')
-rw-r--r--libcuda/gpgpu_context.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcuda/gpgpu_context.h b/libcuda/gpgpu_context.h
index 16626eb..d3db1ad 100644
--- a/libcuda/gpgpu_context.h
+++ b/libcuda/gpgpu_context.h
@@ -1,19 +1,24 @@
#ifndef __gpgpu_context_h__
#define __gpgpu_context_h__
#include "cuda_api_object.h"
+#include "../src/cuda-sim/ptx_loader.h"
class gpgpu_context {
public:
gpgpu_context() {
api = new cuda_runtime_api();
+ ptxinfo = new ptxinfo_data();
}
// global list
// objects pointers for each file
cuda_runtime_api* api;
+ ptxinfo_data* ptxinfo;
// 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 );
};
gpgpu_context* GPGPU_Context();