Manual-sync mirror of chromium.googlesource.com/external/github.com/KhronosGroup/OpenCL-CTS
Find a file
Marco Antognini ed839ebf10
Avoid manual memory management (#1260)
* Avoid manual memory management

Prefer std::vector over malloc and free. This will allow removing goto
statements by leveraging RAII.

Use appropriate type (bool) to store overflow predicates and allocate
std::vector<bool> of appropriate sizes: before this change the
allocation was unnecessary bigger than required.

No longer attempt to catch "out of host memory" issues, given that in
such situation it is generally not possible to cleanly report an error.
Rely on std::bad_alloc exception to report such issues.

Introduce a new header for common code in the math_brute_force
component. It is currently complementary to utility.h and is expected to
hold cleaned up content extracted from future refactoring operations.

List all headers as source in CMake for better compatibility with IDEs.

Signed-off-by: Marco Antognini <marco.antognini@arm.com>

* Remove manual or unnecessary memset

In order to use non-POD types as fields of TestInfo, memset must be
replaced with a compatible zero-initialisation.

Remove an unnecessary memset in MakeKernels.

Signed-off-by: Marco Antognini <marco.antognini@arm.com>
2021-05-24 16:34:54 +01:00
.github/workflows Fix clang-format-9 install (#1261) 2021-05-24 11:31:37 +01:00
test_common Add missing cstdint include (#1259) 2021-05-21 10:07:12 +01:00
test_conformance Avoid manual memory management (#1260) 2021-05-24 16:34:54 +01: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 Use clang-format-9 binary in Github Actions (#1088) 2021-01-04 15:20:55 +00:00
CMakeLists.txt Update warning options (#1252) 2021-05-21 10:06:13 +01: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 Travis badge to master branch (#258) 2019-05-02 17:05:11 +08:00

OpenCL-CTS Build Status

The OpenCL Conformance Tests