blob: 0d2c0358540f1bb6447de36fc9e7ed2f2a1a5f83 (
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>
saw::data<sch::FixedArray<sch::UInt64,D>> sycl_to_saw_index(const acpp::sycl::id<D>& idx){
saw::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;
}
}
}
|