Skip to content

Commit 308886a

Browse files
Update ggml/src/ggml-cuda/ggml-cuda.cu
Adjusted the support judgment logic. Co-authored-by: Johannes Gäßler <[email protected]>
1 parent 1959c24 commit 308886a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-cuda/ggml-cuda.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3272,7 +3272,7 @@ static bool ggml_backend_cuda_device_supports_op(ggml_backend_dev_t dev, const g
32723272
static bool ggml_backend_cuda_device_supports_buft(ggml_backend_dev_t dev, ggml_backend_buffer_type_t buft) {
32733273
ggml_backend_cuda_device_context * dev_ctx = (ggml_backend_cuda_device_context *) dev->context;
32743274
const bool integrated = ggml_cuda_info().devices[dev_ctx->device].integrated;
3275-
return (ggml_backend_buft_is_cuda(buft) || ggml_backend_buft_is_cuda_split(buft) || (integrated && ggml_backend_buft_is_cuda_host(buft))) && buft->device == dev;
3275+
return ((ggml_backend_buft_is_cuda(buft) || ggml_backend_buft_is_cuda_split(buft) && buft->device == dev) || (integrated && ggml_backend_buft_is_cuda_host(buft)));
32763276
}
32773277

32783278
static int64_t get_op_batch_size(const ggml_tensor * op) {

0 commit comments

Comments
 (0)