When I add threadgroup_barrier to my shader, it generates a memory error. Why is that?
IOAF code 3 when using threadgroup_barrier
Add a Comment
When I add threadgroup_barrier to my shader, it generates a memory error. Why is that?
Are you aware of this admonition in the docs?
"The threadgroup_barrier function must be encountered by all threads in a threadgroup executing the kernel."
PS: I run it like this:
threadgroup_barrier(mem_flags::mem_threadgroup);
and there is just one threadgroup memory operation before the call. It is in the main body of the kernel, no conditional or loop around it.
Are you aware of this admonition in the docs?
"The threadgroup_barrier function must be encountered by all threads in a threadgroup executing the kernel."