diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-06-29 22:45:21 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-06-29 22:45:21 +0200 |
| commit | 53ecaeeee3a24c016b4fd3c6a577ac22ac47775a (patch) | |
| tree | 975b4c018d446d0fa441099128211dbabefacbe6 /examples/poiseulle_particles_2d_bgk_gpu/sim.cpp | |
| parent | 78e8a621beff8ccd410f2e2c0b6df7f3931b52eb (diff) | |
| parent | b88d59477a7973bdee102aaf0e26c13c9059048b (diff) | |
| download | libs-lbm-53ecaeeee3a24c016b4fd3c6a577ac22ac47775a.tar.gz | |
Diffstat (limited to 'examples/poiseulle_particles_2d_bgk_gpu/sim.cpp')
| -rw-r--r-- | examples/poiseulle_particles_2d_bgk_gpu/sim.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/poiseulle_particles_2d_bgk_gpu/sim.cpp b/examples/poiseulle_particles_2d_bgk_gpu/sim.cpp index 9cc77ae..73964b7 100644 --- a/examples/poiseulle_particles_2d_bgk_gpu/sim.cpp +++ b/examples/poiseulle_particles_2d_bgk_gpu/sim.cpp @@ -366,6 +366,7 @@ saw::error_or<void> lbm_main(int argc, char** argv){ } } */ + /* if(i.get() % 32u == 0u){ { auto eov = dev.copy_to_host(lbm_sycl_macro_data,*lbm_macro_data_ptr); @@ -380,6 +381,7 @@ saw::error_or<void> lbm_main(int argc, char** argv){ } } } + */ // Stream sycl_q.submit([&](acpp::sycl::handler& h){ component<T,Desc,cmpt::Stream,encode::Sycl<saw::encode::Native>> stream; @@ -419,6 +421,18 @@ saw::error_or<void> lbm_main(int argc, char** argv){ return eov; } } + { + 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",time_steps.get(), *lbm_macro_data_ptr); + if(eov.is_error()){ + return eov; + } + } sycl_q.wait(); return saw::make_void(); |
