mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user