Skip to content

Commit f056852

Browse files
authored
check capture status
1 parent 67630cf commit f056852

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-cuda/mean.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void ggml_cuda_op_mean(ggml_backend_cuda_context & ctx, ggml_tensor * dst) {
4040
ctx.cuda_graph->disable_due_to_gpu_arch || ctx.cuda_graph->disable_due_to_too_many_updates ||
4141
ctx.cuda_graph->disable_due_to_failed_graph_capture))) {
4242
#else
43-
(ncols > 65536)) {
43+
(ncols > 65536) && (iscapturing == cudaStreamCaptureStatusNone)) {
4444
#endif // USE_CUDA_GRAPH
4545
// Single row - use device-wide reduction
4646
size_t tmp_size = 0;

0 commit comments

Comments
 (0)