]> granicus.if.org Git - clang/commit
[OPENMP][NVPTX]Emit shared memory buffer for reduction as 128 bytes
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 18 Dec 2018 21:01:42 +0000 (21:01 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 18 Dec 2018 21:01:42 +0000 (21:01 +0000)
commit2801c2a2b5db82d5dd1833bb3344f8411b42f5d2
tree1d4dd2a2aa44ddf201348bc43e0ea5f1e21ab9fb
parent6682997445e8ad84b4fbab29270e016af5a31be3
[OPENMP][NVPTX]Emit shared memory buffer for reduction as 128 bytes
buffer.

Seems to me, nvlink has a bug with the proper support of the weakly
linked symbols. It does not allow to define several shared memory buffer
with the different sizes even with the weak linkage. Instead we always
use 128 bytes buffer to prevent nvlink from the error message emission.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349540 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
test/OpenMP/nvptx_data_sharing.cpp
test/OpenMP/nvptx_distribute_parallel_generic_mode_codegen.cpp
test/OpenMP/nvptx_parallel_codegen.cpp
test/OpenMP/nvptx_parallel_for_codegen.cpp
test/OpenMP/nvptx_target_codegen.cpp
test/OpenMP/nvptx_target_teams_distribute_codegen.cpp
test/OpenMP/nvptx_target_teams_distribute_parallel_for_codegen.cpp
test/OpenMP/nvptx_target_teams_distribute_parallel_for_simd_codegen.cpp
test/OpenMP/nvptx_teams_codegen.cpp
test/OpenMP/nvptx_teams_reduction_codegen.cpp