summaryrefslogtreecommitdiff
path: root/utests/compiler_atomic_functions.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix atomic test failed in GT1.Yang Rong2013-07-031-11/+12
| | | | | | | | | Barrier only ensure one work group finish, can't guarantee all work item's atomic ops have finished before the last atomic_add. So use atomic_xchg to update first work group's local buffer to other global buffer position. Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: Xing, Homer <homer.xing@intel.com>
* Clear atomic dst buffer to fix atomic random fail.Yang Rong2013-07-011-0/+5
| | | | | | | Because atomic's address used as src and dst, so need to clear this address. Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
* Add atomic test case.Yang Rong2013-06-271-3/+84
| | | | | | | | The test case include local memory and global memory, atomic operations from different threads and different work groups. Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
* Test case for OpenCL 1.1 Atomic FunctionsHomer Hsing2013-03-291-0/+10