Skip to content

Commit 6c5785b

Browse files
authored
use thread local cpature mode (#2850)
1 parent 8879ee0 commit 6c5785b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlx/backend/cuda/device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ CommandEncoder::CaptureContext::CaptureContext(CommandEncoder& enc) : enc(enc) {
8787
return;
8888
}
8989
CHECK_CUDA_ERROR(
90-
cudaStreamBeginCapture(enc.stream(), cudaStreamCaptureModeGlobal));
90+
cudaStreamBeginCapture(enc.stream(), cudaStreamCaptureModeThreadLocal));
9191
}
9292

9393
CommandEncoder::CaptureContext::~CaptureContext() {

0 commit comments

Comments
 (0)