From 0dbab68b562acfcf8bf87a73a2bba7426802c955 Mon Sep 17 00:00:00 2001
From: Lizzzka007 <gashchuk2011@mail.ru>
Date: Wed, 13 Nov 2024 23:06:45 +0300
Subject: [PATCH] Thread count fix for noit sheba

---
 srcCU/sfx-sheba.cu | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcCU/sfx-sheba.cu b/srcCU/sfx-sheba.cu
index de9a828..12f1b6a 100644
--- a/srcCU/sfx-sheba.cu
+++ b/srcCU/sfx-sheba.cu
@@ -286,8 +286,8 @@ void FluxSheba<T, memIn, memOut, MemType::GPU>::noit_compute_flux(const sfx_sheb
     const sfx_sheba_noit_numericsType_C numerics,
     const sfx_phys_constants phys)
 {
-    const int BlockCount = int(ceil(float(grid_size) / 1024.0));
-    dim3 cuBlock = dim3(1024, 1, 1);
+    const int BlockCount = int(ceil(float(grid_size) / 512.0));
+    dim3 cuBlock = dim3(512, 1, 1);
 	dim3 cuGrid = dim3(BlockCount, 1, 1);
 
     sfx_kernel::noit_compute_flux<T><<<cuGrid, cuBlock>>>(sfx, meteo, model, 
-- 
GitLab