diff options
| author | Mengchi Zhang <[email protected]> | 2019-05-23 22:44:37 -0400 |
|---|---|---|
| committer | Mengchi Zhang <[email protected]> | 2019-05-24 00:47:28 -0400 |
| commit | dc835911d5320008b2c227722a90240a8f6b0f3a (patch) | |
| tree | f3ab9f96fb1c50541709d7e5a6ce7d1305cc1b7d /src/cuda-sim/ptx_loader.h | |
| parent | 579047c1dd9fec1b69e7904aeb6a25553c8dbd69 (diff) | |
Fix linebuf for ptxinfo
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/cuda-sim/ptx_loader.h')
| -rw-r--r-- | src/cuda-sim/ptx_loader.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cuda-sim/ptx_loader.h b/src/cuda-sim/ptx_loader.h index e5df6a9..36e439e 100644 --- a/src/cuda-sim/ptx_loader.h +++ b/src/cuda-sim/ptx_loader.h @@ -29,6 +29,16 @@ #define PTX_LOADER_H_INCLUDED #include <string> +#define LINEBUF_SIZE 1024 +typedef void * yyscan_t; +class ptxinfo_data{ + public: + yyscan_t scanner; + char linebuf[LINEBUF_SIZE]; + unsigned col; +}; + + extern bool g_override_embedded_ptx; extern int no_of_ptx; //counter to track number of ptx files to be extracted in an application. |
