cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

nerdralph
Adept II

SLC write in OpenCL?

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.

0 Likes
2 Replies
dipak
Staff
Staff

Re: SLC write in OpenCL?

Currently, it is not possible to do with OpenCL.

Regards,

0 Likes
boxerab
Challenger

Re: SLC write in OpenCL?

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.

0 Likes