Add print() statements to tests to indicate failure details.
These tests all fail with generic-16/c++ output currently; however, the output indicates that it's just small floating-point differences. (Though the question remains, why are those differences popping up?)
This commit is contained in:
@@ -10,6 +10,8 @@ export void f_v(uniform float RET[]) {
|
||||
h = float_to_half(f);
|
||||
|
||||
int mismatches = (f == f && i != h);
|
||||
if (any(mismatches != 0))
|
||||
print("mismatch: orig int16 % -> float % -> half %\n", i, f, h);
|
||||
errors += reduce_add(mismatches);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user