Skip to content

Commit

Permalink
Update ggml-cuda.cu
Browse files Browse the repository at this point in the history
Co-authored-by: slaren <[email protected]>
  • Loading branch information
JohannesGaessler and slaren authored Dec 20, 2023
1 parent 842adec commit 967a014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ggml-cuda.cu
Original file line number Diff line number Diff line change
Expand Up @@ -9434,7 +9434,7 @@ bool ggml_cuda_compute_forward(struct ggml_compute_params * params, struct ggml_
return false;
}

if (tensor->src[0]->backend == GGML_BACKEND_GPU_SPLIT) {
if (tensor->src[0] != nullptr && tensor->src[0]->backend == GGML_BACKEND_GPU_SPLIT) {
ggml_cuda_set_peer_access(tensor->src[1]->ne[1]);
}

Expand Down

0 comments on commit 967a014

Please sign in to comment.