OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1718 Discussions

Possible bug with atomic_cmpxchg?

Ali_R_1
Beginner
309 Views

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.

0 Kudos
1 Reply
Ali_R_1
Beginner
309 Views

Sorry, I've just found that it is numerical error.

Thanks.

0 Kudos
Reply