Add the half ulps values for embedded profile (#2265)

This change adds the half ulps values for embedded profile.


https://github.com/KhronosGroup/OpenCL-CTS/issues/1685
This commit is contained in:
Ahmed
2025-02-11 16:54:47 +00:00
committed by GitHub
parent d7cb6b006b
commit 0bfe516318
3 changed files with 124 additions and 108 deletions

View File

@@ -195,8 +195,14 @@ float getAllowedUlpError(const Func *f, Type t, const bool relaxed)
// TODO: distinguish between embedded and full profile.
return f->double_ulps;
case khalf:
// TODO: distinguish between embedded and full profile.
return f->half_ulps;
if (gIsEmbedded)
{
return f->half_embedded_ulps;
}
else
{
return f->half_ulps;
}
default:
assert(false && "unsupported type in getAllowedUlpError");
// Return a negative value which will make any test fail.