File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
tests/Examples/plaintext/roberts_cross Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,12 @@ struct Memref1D roberts_cross(
1818
1919void memrefCopy ();
2020
21+ // Needs to be allocated in .bss
22+ // Maybe for alignment?
23+ // Otherwise segfault inside memrefCopy
24+ _Alignas(uint64_t ) int64_t input [4096 ];
25+
2126int main () {
22- int64_t input [4096 ];
2327 int64_t expected [4096 ];
2428
2529 for (int i = 0 ; i < 4096 ; ++ i ) {
Original file line number Diff line number Diff line change @@ -18,8 +18,12 @@ struct Memref1D roberts_cross(
1818
1919void memrefCopy ();
2020
21+ // Needs to be allocated in .bss
22+ // Maybe for alignment?
23+ // Otherwise segfault inside memrefCopy
24+ _Alignas(uint64_t ) int16_t input [4096 ];
25+
2126int main () {
22- int16_t input [4096 ];
2327 int16_t expected [4096 ];
2428
2529 for (int i = 0 ; i < 4096 ; ++ i ) {
You can’t perform that action at this time.
0 commit comments