Skip to content

Commit eea49ab

Browse files
Update ggml/src/ggml-cuda/ggml-cuda.cu
Fixed incorrect setting of variable types Co-authored-by: Johannes Gäßler <[email protected]>
1 parent 99cbf62 commit eea49ab

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
@@ -3268,7 +3268,7 @@ static bool ggml_backend_cuda_device_supports_op(ggml_backend_dev_t dev, const g
32683268

32693269
static bool ggml_backend_cuda_device_supports_buft(ggml_backend_dev_t dev, ggml_backend_buffer_type_t buft) {
32703270
ggml_backend_cuda_device_context * dev_ctx = (ggml_backend_cuda_device_context *) dev->context;
3271-
const int integrated = ggml_cuda_info().devices[dev_ctx->device].integrated;
3271+
const bool integrated = ggml_cuda_info().devices[dev_ctx->device].integrated;
32723272
if(integrated){
32733273
return (ggml_backend_buft_is_cuda(buft) || ggml_backend_buft_is_cuda_split(buft) ||ggml_backend_buft_is_cuda_host(buft)) && buft->device == dev;
32743274
}else{

0 commit comments

Comments
 (0)