summaryrefslogtreecommitdiff
path: root/modules/sycl/c++/index.hpp
blob: cf6a4afbc6c8c600b26d7d1c1fed64dcde096016 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include "common.hpp"

namespace kel {
namespace lbm {
template<typename D>
kel::lbm::data<sch::FixedArray<sch::UInt64,D>> sycl_to_saw_index(const acpp::sycl::id<D>& idx){
	kel::lbm::data<sch::FixedArray<sch::UInt64,D>> trans_index;

	for(uint64_t i{0u}; i < D; ++i){
		trans_index.at({{i}}).set(idx[i]);
	}

	return trans_index;
}
}
}