sycl : add warning and assert

This commit is contained in:
Georgi Gerganov 2024-05-27 15:13:23 +03:00
parent ed0891f2a4
commit ec96ee57f4
No known key found for this signature in database
GPG key ID: 449E073F9DC10735

View file

@ -13501,6 +13501,10 @@ inline void ggml_sycl_op_concat(const ggml_tensor *src0,
const float *src0_dd, const float *src1_dd, const float *src0_dd, const float *src1_dd,
float *dst_dd, float *dst_dd,
const dpct::queue_ptr &main_stream) { const dpct::queue_ptr &main_stream) {
#pragma message("TODO: generalize concat kernel for dim != 2")
#pragma message(" https://github.com/ggerganov/llama.cpp/pull/7563")
int dim = dst->op_params[0];
GGML_ASSERT(dim != 2);
GGML_ASSERT(src0->type == GGML_TYPE_F32); GGML_ASSERT(src0->type == GGML_TYPE_F32);
GGML_ASSERT(src1->type == GGML_TYPE_F32); GGML_ASSERT(src1->type == GGML_TYPE_F32);