3.3.4. Memory Consistency Model for OpenCL 1.x
3.3.4.OpenCL 1.x的内存一致性模型
This memory consistency model is deprecated by version 2.0. 2.0版本不赞成使用此内存一致性模型。 |
OpenCL 1.x uses a relaxed consistency memory model; i.e. the state of memory visible to a work-item is not guaranteed to be consistent across the collection of work-items at all times.
OpenCL1.x使用了一个宽松的一致性内存模型;即,不能保证工作项可见的存储器状态在工作项的集合中始终一致。
Within a work-item memory has load / store consistency. Local memory is consistent across work-items in a single work-group at a work-group barrier. Global memory is consistent across work-items in a single work-group at a work-group barrier, but there are no guarantees of memory consistency between different work-groups executing a kernel.
工作项内存具有加载/存储一致性。在工作组栅栏处,单个工作组中的工作项之间的本地内存是一致的。全局内存在工作组栅栏上的单个工作组中的工作项之间是一致的,但不能保证执行内核的不同工作组之间的内存一致性。
Memory consistency for memory objects shared between enqueued commands is enforced at a synchronization point.
排队命令之间共享的内存对象的内存一致性在同步点强制执行。