We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61fbc2d commit c9ca904Copy full SHA for c9ca904
tests/Examples/plaintext/dot_product_f_debug/dot_product_8f_debug_test.c
@@ -43,6 +43,12 @@ float dot_product__decrypt__result0(float *allocated, float *aligned,
43
int64_t offset, int64_t size,
44
int64_t stride);
45
46
+// Needs to be allocated in .bss
47
+// Maybe for alignment?
48
+// Otherwise segfault inside memrefCopy
49
+_Alignas(uint64_t) float arg0[8];
50
+_Alignas(uint64_t) float arg1[8];
51
+
52
// debug handler
53
void __heir_debug_tensor_8xf32_(
54
/* arg 0*/
@@ -72,8 +78,11 @@ int main(int argc, char **argv) {
72
78
output = stderr;
73
79
}
74
80
75
- float arg0[8] = {0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8};
76
- float arg1[8] = {0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9};
81
+ // Initialize the arrays
82
+ for (int i = 0; i < 8; i++) {
83
+ arg0[i] = 0.1 * (i + 1); // 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8
84
+ arg1[i] = 0.1 * (i + 2); // 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9
85
+ }
77
86
float expected = 2.5;
87
88
// "encrypt" each arg, which in plaintext means apply client-side encoding
0 commit comments