From e821d617802ebbfff756844e4d9720342fc78a4e Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Fri, 13 Nov 2026 14:12:49 +0100 Subject: Swarm POC --- examples/heterogeneous_computing/sim.cpp | 95 -------------------------------- 1 file changed, 95 deletions(-) delete mode 100644 examples/heterogeneous_computing/sim.cpp (limited to 'examples/heterogeneous_computing/sim.cpp') diff --git a/examples/heterogeneous_computing/sim.cpp b/examples/heterogeneous_computing/sim.cpp deleted file mode 100644 index 61058be..0000000 --- a/examples/heterogeneous_computing/sim.cpp +++ /dev/null @@ -1,95 +0,0 @@ -#include -#include - -#include - -namespace kel { -namespace lbm { -namespace sch { - -/** - * struct lbm_data { - * std::array, 64u*64u> dfs; - * std::array info; - * }; - * - * which leads to the form - * - * template - * struct lbm_data { - * std::array, Size*Size> dfs; - * std::array info; - * }; - * - * which transferred into sycl requires us to go to - * - * template - * struct lbm_sycl_data { - * std::array* dfs; - * uint8_t* info; - * }; - * - * in data form on host - * - * template - * using LbmData = Struct< - * Member, Size*Size>, "dfs">, - * Member, "info"> - * >; - * - * If we specialize the encode::Sycl data type, then we get - * With a helper class we can copy single values back and forth and the whole block is guaranteed - * to be allocated. And this one can be dynamic while the host definition might be compile time. - * - * template<...> - * class data,encode::Sycl> final { - * kel::lbm::data> meta; - * kel::lbm::data>* dfs; - * kel::lbm::data* info; - * }; - */ - -template -using CellStruct = Struct< - Member,Desc::D, "dfs">, - Member, "dfs_old">, - Member ->; - -} -template -kel::lbm::error_or simulate(int argc, char** argv, - const kel::lbm::data>& meta -{ - constexpr auto cell_size = sizeof(kel::lbm::data>); - - auto lbm_data = kel::lbm::heap,Desc::D, 64u>>>{meta}; - - return kel::lbm::make_void(); -} - -} - -kel::lbm::error_or lbm_main(int argc, char** argv){ - using namespace lbm; - return simulate(argc, argv); -} -} - -int main(int argc, char** argv){ - auto eov = kel::lbm_main(argc, argv); - if(eov.is_error()){ - auto& err = eov.get_error(); - auto err_msg = err.get_message(); - std::cerr<<"[Error]: "<