You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found when a, b, c,d are in some special values, like the above code. Halide-to-Hardware produces inconsistent results with the C reference results. Belows are my testing code:
Buffer<int32_t> input(1);
Buffer<int32_t> out_native(1);
Buffer<int32_t> c_results(1);
for (int y = 0; y <1; y++) {
input(y) = (int32_t)rand();
}
example(input, out_native);
int32_t constant = (((((int32_t)1 * (int32_t)2) - (int32_t)3) / (int32_t)2));
for (int y = 0; y <1; y++) {
c_results(y) = input(y) + constant;
}
bool success = true;
for (int y = 0; y <1; y++) {
if (out_native(y) != c_results(y))
success = false;
}
if(success) {
printf("[APP] Test Passed!\n");
} else {
printf("[APP] Test Failed!\n");
return 1;
}
Above test will fail.
The text was updated successfully, but these errors were encountered:
Hi, I wrote the following simple algorithm:
I found when
a, b, c,d
are in some special values, like the above code. Halide-to-Hardware produces inconsistent results with the C reference results. Belows are my testing code:Above test will fail.
The text was updated successfully, but these errors were encountered: