File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -402,8 +402,13 @@ function maybe_enable_peer_access(src::CuDevice, dst::CuDevice)
402
402
enable_peer_access (context (dst))
403
403
peer_access[][src_idx, dst_idx] = 1
404
404
catch err
405
- @warn " Enabling peer-to-peer access between $src and $dst failed; please file an issue." exception= (err,catch_backtrace ())
406
- peer_access[][src_idx, dst_idx] = - 1
405
+ if err. code == CUDA. CUDA_ERROR_PEER_ACCESS_ALREADY_ENABLED
406
+ @warn " Peer-to-peer access between $src and $dst was unexpectedly already enabled"
407
+ CUDA. peer_access[][src_idx, dst_idx] = 1
408
+ else
409
+ @warn " Enabling peer-to-peer access between $src and $dst failed; please file an issue." exception= (err,catch_backtrace ())
410
+ CUDA. peer_access[][src_idx, dst_idx] = - 1
411
+ end
407
412
end
408
413
end
409
414
else
You can’t perform that action at this time.
0 commit comments