Skip to content

Commit a301564

Browse files
Mike KinsnerPennycook
andauthored
Update sycl/doc/extensions/DeviceGlobal/SYCL_INTEL_device_global.asciidoc
Co-authored-by: John Pennycook <[email protected]>
1 parent 6237869 commit a301564

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/doc/extensions/DeviceGlobal/SYCL_INTEL_device_global.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ Also note that there are no restrictions on passing (and subsequent dereferencin
763763
== Issues
764764

765765
1) Can `sycl::atomic_ref` be used with `device_global`? +
766-
*Resolved*: Yes, but only on the device side. There is no visibility/communication across devices because each device receives a unique allocation of type _T_ underlying the `device_global`. There is no way for an `atomic_ref` to the to be created in host code because there is no way to extract a pointer or reference in host code (only copy/memcpy).
766+
*Resolved*: Yes, but only on the device side. There is no visibility/communication across devices because each device receives a unique allocation of type _T_ underlying the `device_global`. There is no way for an `atomic_ref` associated with the allocation to be created in host code because there is no way to extract a pointer or reference in host code (only copy/memcpy).
767767

768768
2) Should we restrict `device_global` to static storage duration, and if so how? +
769769
*Resolved*: Yes, through similar language as `specialization_id`. Moreover restricted to namespace scope, because it is expensive to implement function scope statics. This could change if a compelling use case arises that needs function scope static support.

0 commit comments

Comments
 (0)