[PATCH] D94884: [Clang][OpenMP] Include header for CUDA builtin vars into OpenMP wrapper header
Johannes Doerfert via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 17 13:18:51 PST 2021
jdoerfert added a reviewer: tra.
jdoerfert added a comment.
I can see that we want this but I guess the errors show the problem, replace `__attribute((device))` with `DEVICE` and define it based on CUDA vs OpenMP properly.
================
Comment at: clang/lib/Headers/__clang_cuda_builtin_vars.h:118
// architectures have a WARP_SZ value of 32'.
__attribute__((device)) const int warpSize = 32;
----------------
Do we need to do something wrt to the attribute here and above?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94884/new/
https://reviews.llvm.org/D94884
More information about the cfe-commits
mailing list