Spaces:
Running
Running
cuda : simplify expression
Browse filesCo-authored-by: slaren <[email protected]>
- extra/sync-ggml.last +1 -1
- ggml-cuda.cu +1 -4
extra/sync-ggml.last
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 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 |
-
|
| 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:
|