https://bugs.llvm.org/show_bug.cgi?id=48121
Bug ID: 48121
Summary: Clang does not diagnose access to the host-side
variables from device-side code.
Product: clang
Version: 11.0
Hardware: PC
OS: All
Status: CONFIRMED
Severity: enhancement
Priority: P
Component: CUDA
Assignee: t...@google.com
Reporter: t...@google.com
CC: llvm-bugs@lists.llvm.org
Following code compiles to PTX. It should not. Clang should produce an error
when device-side code attempts to access host-side data.
https://godbolt.org/z/faPWcv
int host_var;
__global__ void kernel(int * out)
{
*out = host_var;
}
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs