4 ms·
Ah, you're right. They call them "barriers" instead of "fences", so I didn't pick up on that paragraph. Still, C11 and C++ atomics aren't widely implemented ye
by dragontamer 7y ago
Ah, you're right. They call them "barriers" instead of "fences", so I didn't pick up on that paragraph.
Still, C11 and C++ atomics aren't widely implemented yet in the GPU world. OpenCL 1.2 doesn't have them (and OpenCL 2.0 is not commonly implemented), CUDA doesn't have them yet, AMD ROCm doesn't have them yet.
And anyone with older compilers will probably be working with fence intrinsics, instead of "innate" barriers per atomic instruction.