From c0549d71b2109f10c1238db8b22362e7826ba61b Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Sun, 5 Jul 2026 15:59:23 +0200 Subject: Just rename from lib to modules --- modules/sycl/c++/index.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 modules/sycl/c++/index.hpp (limited to 'modules/sycl/c++/index.hpp') diff --git a/modules/sycl/c++/index.hpp b/modules/sycl/c++/index.hpp new file mode 100644 index 0000000..0d2c035 --- /dev/null +++ b/modules/sycl/c++/index.hpp @@ -0,0 +1,18 @@ +#pragma once + +#include "common.hpp" + +namespace kel { +namespace lbm { +template +saw::data> sycl_to_saw_index(const acpp::sycl::id& idx){ + saw::data> trans_index; + + for(uint64_t i{0u}; i < D; ++i){ + trans_index.at({{i}}).set(idx[i]); + } + + return trans_index; +} +} +} -- cgit v1.2.3