Spaces:
Sleeping
Sleeping
Akarshan Biswas
commited on
Commit
·
fe06fa2
1
Parent(s):
a18cd16
SYCL: switch to SYCL namespace (llama/12674)
Browse files
ggml/src/ggml-sycl/norm.cpp
CHANGED
|
@@ -367,7 +367,7 @@ static void l2_norm_f32_sycl(const float* x, float* dst, const int ncols,
|
|
| 367 |
sycl::nd_range<3>(sycl::range<3>(1, 1, nrows) * block_dims,
|
| 368 |
block_dims),
|
| 369 |
[=](sycl::nd_item<3> item_ct1)
|
| 370 |
-
[[
|
| 371 |
l2_norm_f32(x, dst, ncols, eps, item_ct1,
|
| 372 |
nullptr, WARP_SIZE);
|
| 373 |
});
|
|
@@ -389,7 +389,7 @@ static void l2_norm_f32_sycl(const float* x, float* dst, const int ncols,
|
|
| 389 |
sycl::nd_range<3>(sycl::range<3>(1, 1, nrows) * block_dims,
|
| 390 |
block_dims),
|
| 391 |
[=](sycl::nd_item<3> item_ct1)
|
| 392 |
-
[[
|
| 393 |
l2_norm_f32(x, dst, ncols, eps, item_ct1,
|
| 394 |
get_pointer(s_sum_acc_ct1), work_group_size);
|
| 395 |
});
|
|
|
|
| 367 |
sycl::nd_range<3>(sycl::range<3>(1, 1, nrows) * block_dims,
|
| 368 |
block_dims),
|
| 369 |
[=](sycl::nd_item<3> item_ct1)
|
| 370 |
+
[[sycl::reqd_sub_group_size(WARP_SIZE)]] {
|
| 371 |
l2_norm_f32(x, dst, ncols, eps, item_ct1,
|
| 372 |
nullptr, WARP_SIZE);
|
| 373 |
});
|
|
|
|
| 389 |
sycl::nd_range<3>(sycl::range<3>(1, 1, nrows) * block_dims,
|
| 390 |
block_dims),
|
| 391 |
[=](sycl::nd_item<3> item_ct1)
|
| 392 |
+
[[sycl::reqd_sub_group_size(WARP_SIZE)]] {
|
| 393 |
l2_norm_f32(x, dst, ncols, eps, item_ct1,
|
| 394 |
get_pointer(s_sum_acc_ct1), work_group_size);
|
| 395 |
});
|