Skip to content
Snippets Groups Projects
Commit 40498a44 authored by Aaron Councilman's avatar Aaron Councilman
Browse files

Require block size be multiple of 8 for cfd

- Without this, we either have to rewrite cfd to not use structs of
  arrays in Juno or deal with getting the alignment of those arrays
  right in Rust, both are annoying
parent c3436009
No related branches found
No related tags found
1 merge request!186Rodinia
...@@ -146,6 +146,8 @@ fn cfd_harness(args: CFDInputs) { ...@@ -146,6 +146,8 @@ fn cfd_harness(args: CFDInputs) {
pre_euler, pre_euler,
} = args; } = args;
assert!(block_size % 8 == 0, "Hercules expects all arrays to be 32-byte aligned, cfd uses structs of arrays that are annoying to deal with if the block_size is not a multiple of 8");
let FarFieldConditions { let FarFieldConditions {
ff_variable, ff_variable,
ff_fc_momentum_x, ff_fc_momentum_x,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment