summaryrefslogtreecommitdiff
path: root/subgroup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'subgroup.cpp')
-rw-r--r--subgroup.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/subgroup.cpp b/subgroup.cpp
index 1e4bc11..59e873d 100644
--- a/subgroup.cpp
+++ b/subgroup.cpp
@@ -10,7 +10,7 @@
using namespace cl::sycl;
template<typename T>
-inline void dev_shl(intel::sub_group &SG, T &res, T l, T r, unsigned kn, unsigned cw, unsigned cid) {
+inline void dev_shl(ONEAPI::sub_group &SG, T &res, T l, T r, unsigned kn, unsigned cw, unsigned cid) {
T l_tmp = SG.shuffle_down(l, cw - (kn));
T r_tmp = SG.shuffle_up(r, kn);
res = (cid) < kn? l_tmp : r_tmp;
@@ -69,7 +69,7 @@ int main() {
cgh.parallel_for<class FillBuffer>(
nworkitem, [=](nd_item<1> WIid) {
- intel::sub_group SG = WIid.get_sub_group();
+ ONEAPI::sub_group SG = WIid.get_sub_group();
int sglid = SG.get_local_id().get(0);
uint32_t i = WIid.get_global_id(0);
int* cp = &c[0];