Skip to content

Commit 49c4363

Browse files
committed
Convert submit and parallel_for to use extension in gla.cpp
1 parent 02ddbf2 commit 49c4363

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggml/src/ggml-sycl/gla.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ static void gated_linear_attn_f32_kernel(const dpct::queue_ptr stream, u_int B,
1111
const u_int n_seq_tokens = T / B;
1212
sycl::range<1> block_dims((C / H));
1313
sycl::range<1> grid_dims((B * H));
14-
stream->submit([&](sycl::handler & cgh) {
14+
syclex::submit(*stream,[&](sycl::handler & cgh) {
1515
/* local memory accessors*/
1616
auto _k = sycl::local_accessor<float, 1>(sycl::range<1>(head_size), cgh);
1717
auto _r = sycl::local_accessor<float, 1>(sycl::range<1>(head_size), cgh);
1818
auto _td = sycl::local_accessor<float, 1>(sycl::range<1>(head_size), cgh);
1919

20-
cgh.parallel_for(sycl::nd_range<1>(grid_dims * block_dims, block_dims), [=](sycl::nd_item<1> item) {
20+
syclex::nd_launch(cgh,sycl::nd_range<1>(grid_dims * block_dims, block_dims), [=](sycl::nd_item<1> item) {
2121
u_int tid = item.get_local_id(0);
2222
u_int bid = item.get_group(0);
2323

0 commit comments

Comments
 (0)