diff options
| author | Mengchi Zhang <[email protected]> | 2019-06-06 13:20:29 -0400 |
|---|---|---|
| committer | Mengchi Zhang <[email protected]> | 2019-06-06 13:27:20 -0400 |
| commit | ba8374c72558e4b89a0bddc973bcc87a10e2ab5f (patch) | |
| tree | 6e17ebe469d8f4a3b37bf79a98bdb4d76b239bfe /libcuda/gpgpu_context.h | |
| parent | 7e286ec0ffc963d307551caced7f4a52241dced4 (diff) | |
Move g_glbmap
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'libcuda/gpgpu_context.h')
| -rw-r--r-- | libcuda/gpgpu_context.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libcuda/gpgpu_context.h b/libcuda/gpgpu_context.h index 6878d5c..7569ea6 100644 --- a/libcuda/gpgpu_context.h +++ b/libcuda/gpgpu_context.h @@ -15,10 +15,24 @@ class kernel_info_t; typedef std::list<gpgpu_ptx_sim_arg> gpgpu_ptx_sim_arg_list_t; +#ifndef OPENGL_SUPPORT +typedef unsigned long GLuint; +#endif + +struct glbmap_entry { + GLuint m_bufferObj; + void *m_devPtr; + size_t m_size; + struct glbmap_entry *m_next; +}; + +typedef struct glbmap_entry glbmap_entry_t; + class gpgpu_context { public: gpgpu_context() { api = new cuda_runtime_api(); + g_glbmap = NULL; } // global list std::list<cuobjdumpSection*> cuobjdumpSectionList; @@ -30,6 +44,7 @@ class gpgpu_context { std::map<unsigned, std::set<std::string> > version_filename; std::map<void *,void **> pinned_memory; //support for pinned memories added std::map<void *, size_t> pinned_memory_size; + glbmap_entry_t* g_glbmap; // objects pointers for each file cuda_runtime_api* api; // member function list |
