cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

bluewanderer
Journeyman III

Is there a way to do non-temporal writes in OpenCL?

Is it possible to write to global memory bypassing the cache like we can do on CPU?

It seems that in most situations we don't write temporal values to global memory. Actually I never met any case that caching writes is useful.

0 Likes
4 Replies
dipak
Big Boss

Sorry for this late reply.

No, you can't do in OpenCL right now. However, we are considering this feature for a future release. The Khronos OpenCL working group is also aware of a request for this.

Regards,

0 Likes

Any updates on opencl non-temporal stores ? By the way, recent Ryzen perf improvements involved

removing unnecessary NT stores.

0 Likes

Sorry, there is no update at this point. I'll share if I get to know any.

Regards,

0 Likes
tzachi_621
Journeyman III

You can do that with AMD GPUs if you have the time to patch GPU ISA.

See GCN instruction set arch​ , load/store instructions have a bit called 'SLC', - System Level Coherent, if it is flipped the GPU basically bypasses all its caches.

Tzachi

0 Likes