Commit Graph

6 Commits

Author SHA1 Message Date
Ben Ashbaugh
02bf24d2b1 remove min max macros (#1310)
* remove the MIN and MAX macros and use the std versions instead

* fix formatting

* fix Arm build

* remove additional MIN and MAX macros from compat.h
2021-09-13 13:25:32 +01:00
Ben Ashbaugh
4759e5cae0 remove testing for scalar vloada_half (#1293) 2021-08-11 18:03:44 +01:00
julienhascoet
f84fcb055b Fix aliasing issue for test_half (#45) (#1004)
OpenCL-C code must respect aliasing rules as in C99.
Therefore, accessing data from multiple pointer sizes
must all point to character type to keep strict aliasing
rules. If not, when the compiler performs optimization,
the dataflow was broken leading to failure.
We also fix the formatting and refactor few things.
2020-11-20 14:07:14 +00:00
julienhascoet
615ab64db5 Fix error handling for test_half (#997)
For vLoadHalf test, the error was
not properly returned leading to
test success whereas it failed.
2020-10-02 11:22:35 +01:00
Kévin Petit
ed50fcad2d Use float<->half conversion routines from the OpenCL headers (#884)
* Use float<->half conversion routines from the OpenCL headers

Fixes #870

Signed-off-by: Kevin Petit <kevin.petit@arm.com>

* Use cl_half_from_double

* Fix windows build errors

* Fix more build errors

* Code formatting

* Remove TEST class
2020-08-14 13:50:14 +01:00
James Price
40f50d77a3 Rename test .c sources to .cpp where necessary (#604)
Remove hacks to force language from CMake files.

Closes KhronosGroup/OpenCL-CTS#25
2020-02-21 17:34:31 +00:00