From 1f993006305952f4cafddd08267731877e808bba Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 8 Sep 2025 17:15:27 +0200 Subject: Dangling changes Fixed ForcedGuo collision --- examples/cavity_2d_gpu.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'examples/cavity_2d_gpu.cpp') diff --git a/examples/cavity_2d_gpu.cpp b/examples/cavity_2d_gpu.cpp index 19563e2..b5c9b7f 100644 --- a/examples/cavity_2d_gpu.cpp +++ b/examples/cavity_2d_gpu.cpp @@ -189,7 +189,8 @@ void set_initial_conditions(saw::data& latt){ void lbm_step( saw::data& latt, - uint64_t time_step + uint64_t time_step, + sycl::queue& sycl_q ){ using namespace kel::lbm; using dfi = df_info; @@ -260,8 +261,6 @@ void lbm_step( int main(){ using namespace kel::lbm; - saw::remote sycl_rmt; - saw::data> dim{{dim_x, dim_y}}; saw::data lattice{dim}; @@ -273,6 +272,13 @@ int main(){ print_lbm_meta(conv, {1e-3}); + auto eo_lbm_dir = output_directory(); + if(eo_lbm_dir.is_error()){ + return -1; + } + auto& lbm_dir = eo_lbm_dir.get_value(); + auto out_dir = lbm_dir / "cavity_gpu_2d"; + //auto& df_field = lattices.at(0).template get<"dfs">(); //for(uint64_t i = 0; i < df_field.get_dim_size<0u>(); ++i){ // lattices.at(i) = {dim_x, dim_y}; @@ -288,6 +294,8 @@ int main(){ */ set_initial_conditions(lattice); + sycl::queue sycl_q{sycl::default_selector_v, sycl::property::queue::in_order{}}; + /** * Timeloop */ @@ -307,7 +315,7 @@ int main(){ write_vtk_file(vtk_f_name, macros); } - // lbm_step(lattice, i); + lbm_step(lattice, i, sycl_q); } return 0; } -- cgit v1.2.3