From 6cd825ffff991527b97f9771c6f8cf1ac0bb04ed Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Tue, 28 May 2024 10:32:30 +0300 Subject: [PATCH] cuda : add asserts ggml-ci --- ggml-cuda/concat.cu | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ggml-cuda/concat.cu b/ggml-cuda/concat.cu index caa9c1e04..fb9dee8f8 100644 --- a/ggml-cuda/concat.cu +++ b/ggml-cuda/concat.cu @@ -104,6 +104,9 @@ void ggml_cuda_op_concat(ggml_backend_cuda_context & ctx, ggml_tensor * dst) { const int32_t dim = ((int32_t *) dst->op_params)[0]; + GGML_ASSERT(ggml_is_contiguous(src0)); + GGML_ASSERT(ggml_is_contiguous(src1)); + GGML_ASSERT(src0->type == GGML_TYPE_F32); GGML_ASSERT(src1->type == GGML_TYPE_F32); GGML_ASSERT(dst->type == GGML_TYPE_F32);