1#ifndef GGML_SYCL_BINBCAST_HPP
2#define GGML_SYCL_BINBCAST_HPP
3#include "common.hpp"
4
5
6static __dpct_inline__ float op_repeat(const float a, const float b) {
7 return b;
8 GGML_UNUSED(a);
9}
10
11static __dpct_inline__ float op_add(const float a, const float b) {
12 return a + b;
13}
14
15static __dpct_inline__ float op_sub(const float a, const float b) {
16 return a - b;
17}
18
19static __dpct_inline__ float op_mul(const float a, const float b) {
20 return a * b;
21}
22
23static __dpct_inline__ float op_div(const float a, const float b) {
24 return a / b;
25}
26
27void ggml_sycl_add(ggml_backend_sycl_context & ctx, ggml_tensor * dst);
28
29void ggml_sycl_sub(ggml_backend_sycl_context & ctx, ggml_tensor * dst);
30
31void ggml_sycl_mul(ggml_backend_sycl_context & ctx, ggml_tensor * dst);
32
33void ggml_sycl_div(ggml_backend_sycl_context & ctx, ggml_tensor * dst);
34
35void ggml_sycl_repeat(ggml_backend_sycl_context & ctx, ggml_tensor * dst);
36
37
38#endif //GGML_SYCL_BINBCAST_HPP
39