char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Neo Zhangfix op rope, add rope_back (#20293)0cec84f99

char/aliceai-t5-moe
699 B26 linesraw
1//
2// MIT license
3// Copyright (C) 2024 Intel Corporation
4// SPDX-License-Identifier: MIT
5//
6
7//
8// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
9// See https://llvm.org/LICENSE.txt for license information.
10// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
11//
12
13#ifndef GGML_SYCL_ROPE_HPP
14#define GGML_SYCL_ROPE_HPP
15
16#include "common.hpp"
17
18#define SYCL_ROPE_BLOCK_SIZE 256
19
20void ggml_sycl_rope(ggml_backend_sycl_context & ctx, ggml_tensor *dst);
21
22void ggml_sycl_rope_back(ggml_backend_sycl_context & ctx, ggml_tensor * dst);
23
24void ggml_sycl_rope_fused(ggml_backend_sycl_context & ctx, ggml_tensor * dst, ggml_tensor * set_rows);
25
26#endif // GGML_SYCL_ROPE_HPP