diff options
| author | Mengchi Zhang <[email protected]> | 2019-07-03 20:54:01 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-07-03 20:54:01 -0400 |
| commit | ce63582472e027107783b81be40b2429bd8e8f73 (patch) | |
| tree | 36ce48f9e23cd20797b765c04b4161b08edf8398 /src/cuda-sim/ptx_loader.h | |
| parent | c7b8987b313602bf0c3a6edb4830bfba3aa083ae (diff) | |
| parent | 60c38b0f77378eb111e88f632702d19dc3746cc7 (diff) | |
Merge pull request #21 from echoedit/dev
Dev
Diffstat (limited to 'src/cuda-sim/ptx_loader.h')
| -rw-r--r-- | src/cuda-sim/ptx_loader.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cuda-sim/ptx_loader.h b/src/cuda-sim/ptx_loader.h index 77f27c8..c214b95 100644 --- a/src/cuda-sim/ptx_loader.h +++ b/src/cuda-sim/ptx_loader.h @@ -30,13 +30,18 @@ #include <string> #define PTXINFO_LINEBUF_SIZE 1024 +class gpgpu_context; typedef void * yyscan_t; class ptxinfo_data{ public: + ptxinfo_data(gpgpu_context* ctx) { + gpgpu_ctx = ctx; + } yyscan_t scanner; char linebuf[PTXINFO_LINEBUF_SIZE]; unsigned col; const char *g_ptxinfo_filename; + class gpgpu_context* gpgpu_ctx; void ptxinfo_addinfo(); }; |
