[PATCH] D92893: [CUDA] Do not diagnose host/device variable access in dependent types.

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 10 20:11:50 PST 2020


yaxunl added inline comments.


================
Comment at: clang/test/SemaCUDA/device-use-host-var.cu:169
+  static texture<int> ref;
+  __attribute__((device)) int c() {
+    auto &x = ref;
----------------
use `__device__` will make it more readable. same as below.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92893/new/

https://reviews.llvm.org/D92893



More information about the cfe-commits mailing list