diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-07-07 21:01:15 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-07-07 21:01:15 +0200 |
| commit | 1f52fece4204e130fc5e46778f50f6902ee2f219 (patch) | |
| tree | 0e5982e0085f3aa211ed14fccd51888ddf1e6066 /examples/poiseulle_particles_2d_hlbm_gpu | |
| parent | f3cda7237ffcddacc03bfcfef7ffde01309da6b4 (diff) | |
| parent | 66aa3d647ed84d15b0f974c2b41cca5f07ce1cec (diff) | |
| download | libs-lbm-1f52fece4204e130fc5e46778f50f6902ee2f219.tar.gz | |
Merge branch 'dev'
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(); |
