summaryrefslogtreecommitdiff
path: root/ggml-sycl.cpp
diff options
context:
space:
mode:
authorJohn Balis <phobossystems@gmail.com>2024-05-15 03:52:33 -0500
committerGeorgi Gerganov <ggerganov@gmail.com>2024-05-15 13:23:33 +0300
commit48aa8fd1f213a69b41569f809cc954f24dbc4366 (patch)
tree30b96c12e34256145cc60a2c6c9648d44e926524 /ggml-sycl.cpp
parent583fd6b000ec9ad1b465b5c98524f4a0ae388077 (diff)
ggml : add `ggml_upscale_ext` (ggml/814)
* initial commit with CPU implementation of upscale to shape and test, cuda implementation next * experimental commit to see if dst shape is correct * test version * test * removed unnecessary params * refactor * fixed tests * ggml : metal impl + cleanup + sycl dev warnings * patched ggml_upscale cuda op to handle non-contiguous tensors, added test for non-contiguous behavior * metal : fix upsacle op to support nb00 + style --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
Diffstat (limited to 'ggml-sycl.cpp')
-rw-r--r--ggml-sycl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ggml-sycl.cpp b/ggml-sycl.cpp
index 724070eb..b15efb70 100644
--- a/ggml-sycl.cpp
+++ b/ggml-sycl.cpp
@@ -13987,6 +13987,10 @@ inline void ggml_sycl_op_upscale(const ggml_tensor *src0,
GGML_ASSERT(dst->type == GGML_TYPE_F32);
GGML_ASSERT(src0->ne[3] == 1 && dst->ne[3] == 1); // just 3D tensors
+#pragma message("TODO: generalize upscale operator")
+#pragma message(" https://github.com/ggerganov/ggml/pull/814")
+ GGML_ASSERT(false && "TODO: generalize upscale operator);
+
const int scale_factor = dst->op_params[0];
upscale_f32_sycl(src0_dd, dst_dd, src0->ne[0], src0->ne[1], src0->ne[2], scale_factor, main_stream);