memory-fences
In OpenCL, what does mem_fence() do, as opposed to barrier()?
Unlike barrier() (which I think I understand), mem_fence() does not affect all items in the work group.The OpenCL spec says (section 6.11.10), for mem_fence():[详细]
2023-04-11 17:58 分类:问答Out of Order Execution and Memory Fences
I know开发者_开发百科 that modern CPUs can execute out of order, However they always retire the results in-order, as described by wikipedia.[详细]
2023-04-03 06:48 分类:问答Are volatile reads and writes atomic on Windows+VisualC?
There are a couple of questions on this site asking whether using a volatile variable for atomic / multithreaded access is possible: See here, here, or here for example.[详细]
2023-03-27 03:54 分类:问答What is the behavior of __faststorefence?
In regards to this question, I\'m interested only in x86 and x86-64. For MSVC 2005, the documentation for __faststore开发者_运维知识库fence says: \"Guarantees that every preceding store is globally v[详细]
2023-03-15 21:58 分类:问答Intel 64 and IA-32 | Atomic operations including acquire / release semantic
According to the Intel 64 and IA-32 Architectures Software Developer\'s Manual the LOCK Signal Prefix \"ensures that the processor has exclusive use of any shared memory while the signal is asserted\"[详细]
2023-02-07 12:43 分类:问答Memory ordering issues
I\'m experimenting with C++0x su开发者_如何学Pythonpport and there is a problem, that I guess shouldn\'t be there. Either I don\'t understand the subject or gcc has a bug.[详细]
2023-01-22 00:34 分类:问答Atomic Instructions and Variable Update visibility
On most common platforms (the most important being x86; I understand that some platforms have extremely difficult memory models that provide almost no guarantees useful for multithreading, but I don\'[详细]
2022-12-09 20:16 分类:问答