From e19b4c91cfc7c370851c73314f54ef3e479b45bc Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Thu, 16 Apr 2026 09:05:08 +0200 Subject: Address boundary error --- default.nix | 2 +- examples/settling_cubes_2d_ibm_gpu/sim.cpp | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/default.nix b/default.nix index 0a110b8..6940267 100644 --- a/default.nix +++ b/default.nix @@ -71,7 +71,7 @@ let src = builtins.fetchurl { url = "https://git.keldu.de/forstio-forstio/snapshot/master.tar.gz"; - sha256 = "sha256:0dm4ix3a53zx2ddyalzn33lwgqi6aacpcmlqrz28x11c96s30xyh"; + sha256 = "sha256:17zsz10lj5dgqw3fmassgqlhbwgpd7zznbq8cl0sw1v816w3ca8z"; }; phases = [ "unpackPhase" "installPhase" ]; diff --git a/examples/settling_cubes_2d_ibm_gpu/sim.cpp b/examples/settling_cubes_2d_ibm_gpu/sim.cpp index de40c54..80ba90c 100644 --- a/examples/settling_cubes_2d_ibm_gpu/sim.cpp +++ b/examples/settling_cubes_2d_ibm_gpu/sim.cpp @@ -389,7 +389,7 @@ saw::error_or lbm_main(int argc, char** argv){ auto lsdm_view = make_view(lbm_sycl_macro_data); auto lsdp_view = make_view(lbm_sycl_particle_data); - saw::data time_steps{4u*4096ul}; + saw::data time_steps{16u*4096ul}; auto& info_f = lsd_view.template get<"info">(); @@ -402,8 +402,7 @@ saw::error_or lbm_main(int argc, char** argv){ } } sycl_q.wait(); - /* - { + if(i.get()%32u ==0u){ { auto eov = dev.copy_to_host(lbm_sycl_macro_data,*lbm_macro_data_ptr); if(eov.is_error()){ @@ -417,7 +416,6 @@ saw::error_or lbm_main(int argc, char** argv){ } } } - */ /* { { -- cgit v1.2.3