diff options
| author | Mengchi Zhang <[email protected]> | 2019-06-04 14:26:42 -0400 |
|---|---|---|
| committer | Mengchi Zhang <[email protected]> | 2019-06-04 14:26:42 -0400 |
| commit | 8ad9dbc77947b4abd51ebb55ef4bbe80be01caaa (patch) | |
| tree | 167c20c06d0712740a10f1a1099255cd6a8c77d1 /libcuda/gpgpu_context.h | |
| parent | 723a2e94e550e1097114b6a106889fa9419d245b (diff) | |
Add gpgpu_context as the top level class
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'libcuda/gpgpu_context.h')
| -rw-r--r-- | libcuda/gpgpu_context.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libcuda/gpgpu_context.h b/libcuda/gpgpu_context.h new file mode 100644 index 0000000..d6e564b --- /dev/null +++ b/libcuda/gpgpu_context.h @@ -0,0 +1,18 @@ +#include <list> + +class cuobjdumpSection; +class cuobjdumpELFSection; +class cuobjdumpPTXSection; + +class gpgpu_context { + public: + std::list<cuobjdumpSection*> cuobjdumpSectionList; + void cuobjdumpInit(); + void cuobjdumpParseBinary(unsigned int handle); + void extract_code_using_cuobjdump(); + std::list<cuobjdumpSection*> pruneSectionList(CUctx_st *context); + std::list<cuobjdumpSection*> mergeMatchingSections(std::string identifier); + std::list<cuobjdumpSection*> mergeSections(); + cuobjdumpELFSection* findELFSection(const std::string identifier, std::list<cuobjdumpSection*> &libSectionList); + cuobjdumpPTXSection* findPTXSection(const std::string identifier, std::list<cuobjdumpSection*> &libSectionList); +}; |
