summaryrefslogtreecommitdiff
path: root/libcuda/cuda_api_object.h
diff options
context:
space:
mode:
authortgrogers <[email protected]>2019-06-12 16:19:08 -0400
committertgrogers <[email protected]>2019-06-12 16:19:08 -0400
commit53e003426620636f0ba8243e28aa5c0687378749 (patch)
tree3af7e3a8f18689ef6b3f2cc55afc651478742e15 /libcuda/cuda_api_object.h
parent933d0aa4f91588d17f8970c578b2c1d2bbc9fc9c (diff)
parentc5578dade2fef7985bf1b26a7f3ae78896c96b69 (diff)
Merge branch 'dev' of github.com:purdue-aalp/gpgpu-sim_distribution into dev
Diffstat (limited to 'libcuda/cuda_api_object.h')
-rw-r--r--libcuda/cuda_api_object.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libcuda/cuda_api_object.h b/libcuda/cuda_api_object.h
index d931fd5..0054697 100644
--- a/libcuda/cuda_api_object.h
+++ b/libcuda/cuda_api_object.h
@@ -171,6 +171,7 @@ class cuda_runtime_api {
public:
cuda_runtime_api() {
g_glbmap = NULL;
+ g_active_device = 0; //active gpu that runs the code
}
// global list
std::list<cuobjdumpSection*> cuobjdumpSectionList;
@@ -185,11 +186,11 @@ class cuda_runtime_api {
std::map<void *,void **> pinned_memory; //support for pinned memories added
std::map<void *, size_t> pinned_memory_size;
glbmap_entry_t* g_glbmap;
+ int g_active_device; //active gpu that runs the code
// member function list
void cuobjdumpInit();
void extract_code_using_cuobjdump();
void extract_ptx_files_using_cuobjdump(CUctx_st *context);
- void cuobjdumpParseBinary(unsigned int handle);
std::list<cuobjdumpSection*> pruneSectionList(CUctx_st *context);
std::list<cuobjdumpSection*> mergeMatchingSections(std::string identifier);
std::list<cuobjdumpSection*> mergeSections();
@@ -201,5 +202,8 @@ class cuda_runtime_api {
struct dim3 gridDim,
struct dim3 blockDim,
struct CUctx_st* context );
+ int load_static_globals( symbol_table *symtab, unsigned min_gaddr, unsigned max_gaddr, gpgpu_t *gpu );
+ int load_constants( symbol_table *symtab, addr_t min_gaddr, gpgpu_t *gpu );
+
};
#endif /* __cuda_api_object_h__ */