Skip to content

Commit 4574795

Browse files
committed
use recommended way GGML_TENSOR_LOCALS
1 parent 4693b46 commit 4574795

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

ggml/src/ggml-sycl/outprod.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,7 @@ void ggml_sycl_op_out_prod(ggml_backend_sycl_context& ctx, const ggml_tensor* sr
1212
GGML_ASSERT(ggml_is_contiguous(src0));
1313
GGML_ASSERT(ggml_is_contiguous(dst));
1414

15-
const int64_t ne00 = src0->ne[0];
16-
const int64_t ne01 = src0->ne[1];
17-
const int64_t ne0 = dst->ne[0];
18-
const int64_t ne1 = dst->ne[1];
19-
const int64_t ne10 = src1->ne[0];
20-
const int64_t ne11 = src1->ne[1];
21-
22-
// Get strides
23-
const int64_t nb10 = src1->nb[0];
24-
const int64_t nb11 = src1->nb[1];
15+
GGML_TENSOR_BINARY_OP_LOCALS
2516

2617
// Get SYCL queue
2718
dpct::queue_ptr stream = ctx.stream();

0 commit comments

Comments
 (0)