summaryrefslogtreecommitdiff
path: root/src/cuda-sim/ptx_loader.h
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-05-24 11:02:45 -0400
committerGitHub <[email protected]>2019-05-24 11:02:45 -0400
commit112e85e32c08e9fa0a34bb0ec262d8e95df61e6b (patch)
treed989c1dc4f701171e92d45bda507d953c311554f /src/cuda-sim/ptx_loader.h
parentab1221c14fa548404d4012f30399cb23a892f30c (diff)
parentdc835911d5320008b2c227722a90240a8f6b0f3a (diff)
Merge pull request #4 from echoedit/dev
Fix linebuf for ptxinfo
Diffstat (limited to 'src/cuda-sim/ptx_loader.h')
-rw-r--r--src/cuda-sim/ptx_loader.h10
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.