Quantcast
Channel: Intel® Software - OpenCL*
Viewing all articles
Browse latest Browse all 1182

Possible bug with atomic_cmpxchg?

$
0
0

I wrote an OpenCL code to multiply a row vector into a Compressed Sparse Row matrix. But it gives me a different answer eachtime I run it.

I have built a small repro case based on my matrcies. As one can see, the program breaks at differnet values of j, despite it is expected to print Success. I think the problem is related to atomic_cmpxchg cache flushing, since the loop containing it always run only one time, which is a little stange.

Can any body help me on this please?

Thanks.

AttachmentSize
Downloadocl-repro.zip413.82 KB

Viewing all articles
Browse latest Browse all 1182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>