[all-commits] [llvm/llvm-project] f2a133: [CUDA][HIP] Do not mark extern shared var (#65990)
Yaxun (Sam) Liu via All-commits
all-commits at lists.llvm.org
Mon Sep 11 14:05:08 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f2a1331a01ff8ad19fed6bd407501791467ad061
https://github.com/llvm/llvm-project/commit/f2a1331a01ff8ad19fed6bd407501791467ad061
Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
Date: 2023-09-11 (Mon, 11 Sep 2023)
Changed paths:
M clang/include/clang/AST/ASTContext.h
M clang/lib/Sema/SemaExpr.cpp
M clang/test/CodeGenCUDA/host-used-extern.cu
Log Message:
-----------
[CUDA][HIP] Do not mark extern shared var (#65990)
Fixes: https://github.com/llvm/llvm-project/issues/65806
Currently clang put extern shared var ODR-used by host device functions
in global var __clang_gpu_used_external. This behavior was due to
https://reviews.llvm.org/D123441. However, clang should not do that for
extern shared vars since their addresses are per warp, therefore cannot
be accessed by host code.
More information about the All-commits
mailing list