diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-07-07 21:00:19 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-07-07 21:00:19 +0200 |
| commit | 66aa3d647ed84d15b0f974c2b41cca5f07ce1cec (patch) | |
| tree | 0e5982e0085f3aa211ed14fccd51888ddf1e6066 /examples/poiseulle_particles_2d_hlbm_gpu | |
| parent | 544c842c63cd048160f4277a6d0ca3a1f89bd9d1 (diff) | |
| download | libs-lbm-66aa3d647ed84d15b0f974c2b41cca5f07ce1cec.tar.gz | |
Fixing writeout times
Diffstat (limited to 'examples/poiseulle_particles_2d_hlbm_gpu')
| -rw-r--r-- | examples/poiseulle_particles_2d_hlbm_gpu/sim.cpp | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/examples/poiseulle_particles_2d_hlbm_gpu/sim.cpp b/examples/poiseulle_particles_2d_hlbm_gpu/sim.cpp index b1bd37d..454fb08 100644 --- a/examples/poiseulle_particles_2d_hlbm_gpu/sim.cpp +++ b/examples/poiseulle_particles_2d_hlbm_gpu/sim.cpp @@ -359,20 +359,7 @@ saw::error_or<void> 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()){ - return eov; - } - } - { - auto eov = write_csv_file(out_dir,"m",i.get(), *lbm_macro_data_ptr); - if(eov.is_error()){ - return eov; - } - } - } + // Stream sycl_q.submit([&](acpp::sycl::handler& h){ component<T,Desc,cmpt::Stream,encode::Sycl<saw::encode::Native>> stream; @@ -412,6 +399,12 @@ saw::error_or<void> lbm_main(int argc, char** argv){ return eov; } } + { + auto eov = write_csv_file(out_dir,"m",i.get(), *lbm_macro_data_ptr); + if(eov.is_error()){ + return eov; + } + } sycl_q.wait(); return saw::make_void(); |
