[all-commits] [llvm/llvm-project] 0813f4: [libomptarget][nfc] Explicitly static function sco...
Jon Chesterfield via All-commits
all-commits at lists.llvm.org
Tue Mar 24 11:52:07 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 0813f41005fddac8cc41b42fa5e918d9b049c60c
https://github.com/llvm/llvm-project/commit/0813f41005fddac8cc41b42fa5e918d9b049c60c
Author: JonChesterfield <jonathanchesterfield at gmail.com>
Date: 2020-03-24 (Tue, 24 Mar 2020)
Changed paths:
M openmp/libomptarget/deviceRTLs/common/src/reduction.cu
Log Message:
-----------
[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
More information about the All-commits
mailing list