From 64ecf6992b5e0400877c2d1b479dddcadac6db69 Mon Sep 17 00:00:00 2001 From: Wilson Fung Date: Fri, 9 Nov 2012 15:33:00 -0800 Subject: 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] --- src/cuda-sim/ptx_parser.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cuda-sim/ptx_parser.h') 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(); -- cgit v1.3