ggerganov slaren commited on
Commit
cda4a91
·
1 Parent(s): cec288d

cuda : simplify expression

Browse files

Co-authored-by: slaren <[email protected]>

Files changed (2) hide show
  1. extra/sync-ggml.last +1 -1
  2. ggml-cuda.cu +1 -4
extra/sync-ggml.last CHANGED
@@ -1 +1 @@
1
- 965137f49917768959679a9e860dc414e170fd55
 
1
+ 3fd01e00e40583ccd4b393a7c6502d6a4455a1d5
ggml-cuda.cu CHANGED
@@ -10044,10 +10044,7 @@ static bool ggml_backend_cuda_supports_op(ggml_backend_t backend, const ggml_ten
10044
  case GGML_OP_CONCAT:
10045
  {
10046
  ggml_type src0_type = op->src[0]->type;
10047
- if (src0_type != GGML_TYPE_I32 && src0_type != GGML_TYPE_I16) {
10048
- return true;
10049
- }
10050
- return false;
10051
  } break;
10052
  case GGML_OP_NONE:
10053
  case GGML_OP_RESHAPE:
 
10044
  case GGML_OP_CONCAT:
10045
  {
10046
  ggml_type src0_type = op->src[0]->type;
10047
+ return src0_type != GGML_TYPE_I32 && src0_type != GGML_TYPE_I16;
 
 
 
10048
  } break;
10049
  case GGML_OP_NONE:
10050
  case GGML_OP_RESHAPE: