- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
ocl-repro.zip
(Virus scan in progress ...)
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, I've just found that it is numerical error.
Thanks.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page