Manual-sync mirror of chromium.googlesource.com/external/github.com/KhronosGroup/OpenCL-CTS
Find a file
Jeremy Kemp 5d6ca3e9d1
Change memory order and scope for atomics that gate final results being stored. (#1377)
* Change memory order and scope for atomics that gate final results being stored.

memory_order_acq_rel with memory_scope_device is now used to guarantee that the correct memory consistency is observed before final results are stored.

Previously it was possible for kernels to be generated that all used relaxed memory ordering, which could lead to false-positive failures.

Fixes #1370

* Disable atomics tests with global, in-program atomics.

If the device does not support `memory_order_relaxed` or `memory_scope_device`, disable atomics tests that declare their atomics in-program with global memory.

There is now an implicit requirement to support `memory_order_relaxed` and `memory_scope_device` for these tests.

* Fix misplaced parentheses.

* Change memory scope for atomic fetch and load calls in kernel

Change the memory scope from memory_scope_work_group to
memory_scope_device so the ordering applies across all work items

Co-authored-by: Sreelakshmi Haridas <sharidas@quicinc.com>
2022-04-28 15:34:08 -07:00
.github/workflows Use macOS 10 in CI (#1282) 2021-07-02 10:34:13 +01:00
test_common imageHelpers: add CL_UNORM_SHORT_{555, 565} in get_max_absolute_error (#1406) 2022-04-28 14:46:52 -07:00
test_conformance Change memory order and scope for atomics that gate final results being stored. (#1377) 2022-04-28 15:34:08 -07:00
.appveyor.yml build an OpenCL 3.0 ICD loader for CI builds (#860) 2020-07-29 09:32:40 +01:00
.clang-format clang-format: indent continued lines (#739) 2020-04-17 10:54:58 +01:00
.gitattributes Add SPIR-V binaries for OpenCL C++ tests. 2017-07-25 20:39:41 +05:30
check-format.sh Update format script and drop Travis badge for branch rename (#1393) 2022-03-02 18:27:52 +00:00
CMakeLists.txt Fix clang 10 build errors (#1387) 2022-04-19 09:57:15 -07:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2018-10-10 16:02:58 -04:00
LICENSE.txt Change name to LICENSE.txt, revert to Apache 2.0 2018-10-03 10:08:39 -04:00
presubmit.sh Remove OpenCL C++ tests (#1241) 2021-05-13 09:13:03 +01:00
readme-spir-v-binaries.txt Merge branch 'cl21_trunk' 2019-07-30 12:10:52 +01:00
README.md Update format script and drop Travis badge for branch rename (#1393) 2022-03-02 18:27:52 +00:00

OpenCL-CTS

The OpenCL Conformance Tests