[PATCH] D88250: [CUDA] Added dim3/uint3 conversion functions to builtin vars.
Justin Lebar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 24 11:14:52 PDT 2020
jlebar accepted this revision.
jlebar added a comment.
This revision is now accepted and ready to land.
I know it comes in a separate change, but can we add a check to the test-suite?
================
Comment at: clang/lib/Headers/__clang_cuda_runtime_wrapper.h:381
+__device__ inline __cuda_builtin_threadIdx_t::operator dim3() const {
+ return {x, y, z};
+}
----------------
This is a C++11-ism (right?). Do we support compiling without C++11?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88250/new/
https://reviews.llvm.org/D88250
More information about the cfe-commits
mailing list