mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
[NFC] math_brute_force: add type argument to getAllowedUlpError (#2017)
Add a type argument so that in the future we can request the ULP requirement for fp16 and fp64 types through `getAllowedUlpError` too. Contributes to https://github.com/KhronosGroup/OpenCL-CTS/issues/867 Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
a773a379d9
commit
c083a87b35
@@ -201,7 +201,7 @@ cl_int Test(cl_uint job_id, cl_uint thread_id, void *data)
|
||||
fptr func = job->f->func;
|
||||
int ftz = job->ftz;
|
||||
bool relaxedMode = job->relaxedMode;
|
||||
float ulps = getAllowedUlpError(job->f, relaxedMode);
|
||||
float ulps = getAllowedUlpError(job->f, kfloat, relaxedMode);
|
||||
MTdata d = tinfo->d;
|
||||
cl_int error;
|
||||
std::vector<bool> overflow(buffer_elements, false);
|
||||
|
||||
Reference in New Issue
Block a user