mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
[NFC] math_brute_force: use getAllowedUlpError for half (#2086)
Call `getAllowedUlpError` to obtain the allowed ULP error for all of the half type (fp16) tests. The aim is to standardise obtaining the desired ULP requirement and pave the way for adding the Embedded Profile ULP errors. Contributes to https://github.com/KhronosGroup/OpenCL-CTS/issues/867 Contributes to https://github.com/KhronosGroup/OpenCL-CTS/issues/1685 Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
bc5f6cdfe8
commit
dd2454685b
@@ -80,7 +80,7 @@ int TestFunc_Half_Half_Half_Half(const Func *f, MTdata d, bool relaxedMode)
|
||||
constexpr size_t bufferElements = BUFFER_SIZE / sizeof(cl_half);
|
||||
|
||||
std::vector<cl_uchar> overflow(bufferElements);
|
||||
float half_ulps = f->half_ulps;
|
||||
float half_ulps = getAllowedUlpError(f, khalf, relaxedMode);
|
||||
int skipNanInf = (0 == strcmp("fma", f->nameInCode));
|
||||
|
||||
logFunctionInfo(f->name, sizeof(cl_half), relaxedMode);
|
||||
|
||||
Reference in New Issue
Block a user