diff options
| author | Wilson Fung <[email protected]> | 2012-11-09 15:33:00 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:49:21 -0700 |
| commit | 64ecf6992b5e0400877c2d1b479dddcadac6db69 (patch) | |
| tree | 29497a626d6b45d31028ae8d7caac0a6fded8f37 /src/cuda-sim/ptx.y | |
| parent | c6becca8e1c9c188b515d4c66df66114ef448361 (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.y')
| -rw-r--r-- | src/cuda-sim/ptx.y | 7 |
1 files changed, 3 insertions, 4 deletions
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 |
