summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2024-01-03 14:18:46 +0200
committerGeorgi Gerganov <ggerganov@gmail.com>2024-01-03 14:38:38 +0200
commit7bed7eba359b0fa8e575345dc5467a46b4ba509f (patch)
tree73a8aa7a02a6ad4360a3fe5f3499febb877a5b8c
parentd55356d3baa58a6c3a9171cb67a67094b9aa9dff (diff)
cuda : simplify expression
Co-authored-by: slaren <slarengh@gmail.com>
-rw-r--r--ggml-cuda.cu5
-rw-r--r--scripts/sync-ggml.last2
2 files changed, 2 insertions, 5 deletions
diff --git a/ggml-cuda.cu b/ggml-cuda.cu
index 2e759d43..52d3cc6a 100644
--- a/ggml-cuda.cu
+++ b/ggml-cuda.cu
@@ -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:
diff --git a/scripts/sync-ggml.last b/scripts/sync-ggml.last
index 2105a8df..354246a2 100644
--- a/scripts/sync-ggml.last
+++ b/scripts/sync-ggml.last
@@ -1 +1 @@
-5b6f3aeba051be8926cb921b8ba529ff990608bf
+3fd01e00e40583ccd4b393a7c6502d6a4455a1d5