cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

bubu
Adept II

Does write_imagef use the texture cache?

Does write_imagef use the texture cache? Am I polluting the texture cache writing an independent texel per thread?

 

I think read_imagef should use the texture cache but ... what happens with write_imagef? 

 

And... are the write_imagef operations thread-atomic(auto-mem-fence) or can I enter a race condition if the CL threads write to multiple pixels?

 

thx

0 Likes
2 Replies

write_imagef does not pollute the texture cache. If multiple threads are writing to the same location, then there is a race condition where the last write is the winning write.
0 Likes

Originally posted by: MicahVillmow write_imagef does not pollute the texture cache. If multiple threads are writing to the same location, then there is a race condition where the last write is the winning write.


Nice, I figured it and it's exactly what I want

0 Likes