Skip to content
Snippets Groups Projects
Commit 65aae3b1 authored by Russel Arbore's avatar Russel Arbore
Browse files

fix cfd to use proper alignment

parent ae8f17eb
No related branches found
No related tags found
1 merge request!198Optimization for miranda
Pipeline #201856 passed
...@@ -151,7 +151,7 @@ fn cfd_harness(args: CFDInputs) { ...@@ -151,7 +151,7 @@ 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"); assert!(block_size % 16 == 0, "Hercules expects all arrays to be 64-byte aligned, cfd uses structs of arrays that are annoying to deal with if the block_size is not a multiple of 16");
let FarFieldConditions { let FarFieldConditions {
ff_variable, ff_variable,
...@@ -245,7 +245,7 @@ fn test_euler() { ...@@ -245,7 +245,7 @@ fn test_euler() {
cfd_harness(CFDInputs { cfd_harness(CFDInputs {
data_file: "data/fvcorr.domn.097K".to_string(), data_file: "data/fvcorr.domn.097K".to_string(),
iterations: 1, iterations: 1,
block_size: 8, block_size: 16,
pre_euler: false, pre_euler: false,
}); });
} }
...@@ -255,7 +255,7 @@ fn test_pre_euler() { ...@@ -255,7 +255,7 @@ fn test_pre_euler() {
cfd_harness(CFDInputs { cfd_harness(CFDInputs {
data_file: "data/fvcorr.domn.097K".to_string(), data_file: "data/fvcorr.domn.097K".to_string(),
iterations: 1, iterations: 1,
block_size: 8, block_size: 16,
pre_euler: true, pre_euler: true,
}); });
} }
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