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.y | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/cuda-sim/ptx.y') diff --git a/src/cuda-sim/ptx.y b/src/cuda-sim/ptx.y index f8b29c4..c4d8b06 100644 --- a/src/cuda-sim/ptx.y +++ b/src/cuda-sim/ptx.y @@ -250,10 +250,9 @@ ptr_spec: /*empty*/ | PTR_DIRECTIVE ptr_space_spec ptr_align_spec | PTR_DIRECTIVE ptr_align_spec -ptr_space_spec: GLOBAL_DIRECTIVE - | LOCAL_DIRECTIVE - | CONST_DIRECTIVE - | SHARED_DIRECTIVE +ptr_space_spec: GLOBAL_DIRECTIVE { add_ptr_spec(global_space); } + | LOCAL_DIRECTIVE { add_ptr_spec(local_space); } + | SHARED_DIRECTIVE { add_ptr_spec(shared_space); } ptr_align_spec: ALIGN_DIRECTIVE INT_OPERAND -- cgit v1.3