]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
cuda : simplify expression
authorGeorgi Gerganov <redacted>
Wed, 3 Jan 2024 12:18:46 +0000 (14:18 +0200)
committerGeorgi Gerganov <redacted>
Wed, 3 Jan 2024 12:38:38 +0000 (14:38 +0200)
Co-authored-by: slaren <redacted>
ggml-cuda.cu
scripts/sync-ggml.last

index 2e759d43e736cd609d3509c466d4f235d3242551..52d3cc6a6a67ca5c430da364ccf63e27919eb254 100644 (file)
@@ -10044,10 +10044,7 @@ static bool ggml_backend_cuda_supports_op(ggml_backend_t backend, const ggml_ten
         case GGML_OP_CONCAT:
             {
                 ggml_type src0_type = op->src[0]->type;
-                if (src0_type != GGML_TYPE_I32 && src0_type != GGML_TYPE_I16) {
-                    return true;
-                }
-                return false;
+                return src0_type != GGML_TYPE_I32 && src0_type != GGML_TYPE_I16;
             } break;
         case GGML_OP_NONE:
         case GGML_OP_RESHAPE:
index 2105a8df2d43df872352ade106eabc60c0aef935..354246a264eb4c40793d3ef850660e3771915b39 100644 (file)
@@ -1 +1 @@
-5b6f3aeba051be8926cb921b8ba529ff990608bf
+3fd01e00e40583ccd4b393a7c6502d6a4455a1d5