llvm-project/openmp/libomptarget/deviceRTLs
JonChesterfield 0813f41005 [libomptarget][nfc] Explicitly static function scope shared variables
Summary:
[libomptarget][nfc] Explicitly static function scope shared variables

`__shared__` in CUDA implies static in function scope. See e.g. D.2.1.1
in CUDA_C_Programming_Guide.pdf,
http://developer.download.nvidia.com/compute/DevZone/docs/html/C/doc/

This is surprising for non-cuda developers, see e.g. D73239 where I thought
local variables would be thread local.

Tested by IR diff of libomptarget.bc (no change), running in tree tests,
and binary diff of the nvcc static archives (no significant change).

Reviewers: jdoerfert, ABataev, grokos

Reviewed By: jdoerfert

Subscribers: openmp-commits

Tags: #openmp

Differential Revision: https://reviews.llvm.org/D76713
2020-03-24 18:51:50 +00:00
..
amdgcn [libomptarget] Implement locks for amdgcn 2020-03-05 20:25:31 +00:00
common [libomptarget][nfc] Explicitly static function scope shared variables 2020-03-24 18:51:50 +00:00
nvptx [libomptarget][nfc] Move GetWarp/LaneId functions into per arch code 2020-03-05 17:05:58 +00:00
CMakeLists.txt [libomptarget][nfc] Disable amdgcn rtl build. The cmake logic for finding llvm is misbehaving. 2020-03-21 00:01:03 +00:00
interface.h [libomptarget][nfc] Move omp locks under target_impl 2019-12-17 12:18:57 +00:00