diff options
| author | Mengchi Zhang <[email protected]> | 2019-06-12 00:42:37 -0400 |
|---|---|---|
| committer | Mengchi Zhang <[email protected]> | 2019-06-12 00:42:37 -0400 |
| commit | ba1ed2941753ae8406bc9ec4a0de1eddc6454a1c (patch) | |
| tree | 6fae9e92c22c29138f0c33048bd79483d09ad480 /libcuda/cuda_api_object.h | |
| parent | 269fbbdb72dacdf4dc3c482b213174336c3eeb1f (diff) | |
Move some vars
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'libcuda/cuda_api_object.h')
| -rw-r--r-- | libcuda/cuda_api_object.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libcuda/cuda_api_object.h b/libcuda/cuda_api_object.h index d931fd5..f9a4fde 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,6 +186,7 @@ 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(); @@ -201,5 +203,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__ */ |
