Skip to content

Commit

Permalink
Changed quantity of tests performed for half in unary and macro_unary…
Browse files Browse the repository at this point in the history
… procedures from basic
  • Loading branch information
shajder committed Jun 22, 2023
1 parent 867df9f commit 015e3b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test_conformance/math_brute_force/macro_unary_half.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ int TestMacro_Int_Half(const Func *f, MTdata d, bool relaxedMode)
}
else
{
test_info.jobCount = (cl_uint)((1ULL << 32) / test_info.step);
test_info.jobCount =
std::max((cl_uint)1,
(cl_uint)((1ULL << sizeof(cl_half) * 8) / test_info.step));
}

test_info.f = f;
Expand Down
4 changes: 3 additions & 1 deletion test_conformance/math_brute_force/unary_half.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ int TestFunc_Half_Half(const Func *f, MTdata d, bool relaxedMode)
}
else
{
test_info.jobCount = (cl_uint)((1ULL << 32) / test_info.step);
test_info.jobCount =
std::max((cl_uint)1,
(cl_uint)((1ULL << sizeof(cl_half) * 8) / test_info.step));
}

test_info.f = f;
Expand Down

0 comments on commit 015e3b6

Please sign in to comment.