Is there any way to do a SLC write in OpenCL, or force a L2 cache line flush after a write? I'm doing writes that I know won't be read back for a long time, so I don't want them polluting the L2.
I've tried volatile pointers and write_mem_fence, both of which just add
s_waitcnt | vmcnt(0) |
after the writes.
Currently, it is not possible to do with OpenCL.
Regards,
This would be a nice feature to have. Perhaps you can suggest this on the Khronos site for next version of OpenCL - some hints to the compiler.