You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SYCL] Move static const variables to constant address space
Previously when ENASBLE_INFER_AS is enabled (see: 1a3a536 [SYCL]
Optionally override addrspace map for SYCL device code), static
variables were put into generic address space.
Now, if a static variable has a const qualifier, it will go to
constant address space.
Non-const variables with static storage are not supported by the SYCL
1.2.1 specification (see s6.3 "Language restrictions for kernels"),
but this patch handles this case as well by putting such variables
into global address space (we cannot do anything better in CodeGen
anyway).
Signed-off-by: Andrew Savonichev <andrew.savonichev@intel.com>
0 commit comments