SWDEV-470698 - fix formatting, add format check workflow (#657)

This commit is contained in:
Danylo Lytovchenko
2025-08-20 16:28:06 +02:00
committed by GitHub
parent 5840940caa
commit f7338717ae
1574 changed files with 162972 additions and 199346 deletions
@@ -323,7 +323,7 @@ TEST_CASE("Unit_bf16_basic") {
std::vector<unsigned> res(size, 0);
HIP_CHECK(hipMemcpy(res.data(), d_res, sizeof(unsigned) * size, hipMemcpyDeviceToHost));
for(size_t i = 0; i < res.size(); i++) {
for (size_t i = 0; i < res.size(); i++) {
INFO("Index: " << i << " input: " << in[i] << " output: " << res[i]);
REQUIRE(res[i] == 1);
}
@@ -349,7 +349,7 @@ TEST_CASE("Unit_bf16_basic") {
HIP_CHECK(hipFree(d_in));
HIP_CHECK(hipFree(d_res));
for(size_t i = 0; i < res.size(); i++) {
for (size_t i = 0; i < res.size(); i++) {
INFO("Index: " << i << " input: " << in[i] << " expected: " << res_cmp[i]
<< " result: " << res[i]);
REQUIRE(abs(static_cast<int>(res_cmp[i] - res[i])) <= 2);