From 65aae3b11da86b12f108fda7264becf6f2af5816 Mon Sep 17 00:00:00 2001
From: Russel Arbore <russel.jma@gmail.com>
Date: Tue, 25 Feb 2025 10:59:45 -0600
Subject: [PATCH] fix cfd to use proper alignment

---
 juno_samples/rodinia/cfd/src/main.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/juno_samples/rodinia/cfd/src/main.rs b/juno_samples/rodinia/cfd/src/main.rs
index 1ce6b89a..fab241fa 100644
--- a/juno_samples/rodinia/cfd/src/main.rs
+++ b/juno_samples/rodinia/cfd/src/main.rs
@@ -151,7 +151,7 @@ fn cfd_harness(args: CFDInputs) {
         pre_euler,
     } = 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 {
         ff_variable,
@@ -245,7 +245,7 @@ fn test_euler() {
     cfd_harness(CFDInputs {
         data_file: "data/fvcorr.domn.097K".to_string(),
         iterations: 1,
-        block_size: 8,
+        block_size: 16,
         pre_euler: false,
     });
 }
@@ -255,7 +255,7 @@ fn test_pre_euler() {
     cfd_harness(CFDInputs {
         data_file: "data/fvcorr.domn.097K".to_string(),
         iterations: 1,
-        block_size: 8,
+        block_size: 16,
         pre_euler: true,
     });
 }
-- 
GitLab