summaryrefslogtreecommitdiff
path: root/src/cuda-sim/ptx_parser.h
diff options
context:
space:
mode:
authorWilson Fung <[email protected]>2012-11-09 15:33:00 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:49:21 -0700
commit64ecf6992b5e0400877c2d1b479dddcadac6db69 (patch)
tree29497a626d6b45d31028ae8d7caac0a6fded8f37 /src/cuda-sim/ptx_parser.h
parentc6becca8e1c9c188b515d4c66df66114ef448361 (diff)
Extended PTX parser to recognize the .ptr .shared directive and allocate shared memory buffer to those pointers. This is required to support OpenCL local memorywith the newer NVIDIA driver.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 14565]
Diffstat (limited to 'src/cuda-sim/ptx_parser.h')
-rw-r--r--src/cuda-sim/ptx_parser.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cuda-sim/ptx_parser.h b/src/cuda-sim/ptx_parser.h
index edaa7af..7405dd3 100644
--- a/src/cuda-sim/ptx_parser.h
+++ b/src/cuda-sim/ptx_parser.h
@@ -69,6 +69,7 @@ void add_address_operand2( int offset );
void add_label( const char *idenfiier );
void add_vector_spec(int spec );
void add_space_spec( enum _memory_space_t spec, int value );
+void add_ptr_spec( enum _memory_space_t spec );
void add_extern_spec();
void add_instruction();
void set_return();