[all-commits] [llvm/llvm-project] ea08c4: [CUDA] Fix static device variables with -fgpu-rdc
Jonas Hahnfeld via All-commits
all-commits at lists.llvm.org
Wed Aug 25 00:32:49 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ea08c4cd1c0869ec5024a8bb3f5cdf06ab03ae83
https://github.com/llvm/llvm-project/commit/ea08c4cd1c0869ec5024a8bb3f5cdf06ab03ae83
Author: Jonas Hahnfeld <jonas.hahnfeld at cern.ch>
Date: 2021-08-25 (Wed, 25 Aug 2021)
Changed paths:
M clang/lib/CodeGen/CodeGenModule.cpp
M clang/test/CodeGenCUDA/device-var-linkage.cu
M clang/test/CodeGenCUDA/managed-var.cu
M clang/test/CodeGenCUDA/static-device-var-rdc.cu
Log Message:
-----------
[CUDA] Fix static device variables with -fgpu-rdc
NVPTX does not allow dots in the identifier, so ptxas errors out with
fatal : Parsing error near '.static': syntax error
because it parses .static as a directive. Avoid this problem by using
two underscores, similar to what OpenMP does for outlined functions.
Differential Revision: https://reviews.llvm.org/D108456
More information about the All-commits
mailing list