Fix #119959: Enabling "Distribute memory between devices" for Cycles results in error #120255

Merged
Patrick Mours merged 1 commits from pmoursnv/blender:fix_cuda_peer_access into main 2024-04-15 12:17:45 +02:00

1 Commits

Author SHA1 Message Date
Patrick Mours ec54eadc53 Fix #119959: Enabling "Distribute memory between devices" for Cycles results in error
With the switch to using the primary CUDA context (4f58cffb4e) it became possible for peer access between CUDA devices to already have been enabled for that context, either by a previous Cycles session or third-party library, thus causing the call to "cuCtxEnablePeerAccess" to return "CUDA_ERROR_PEER_ACCESS_ALREADY_ENABLED". This is not a failure state however, so just needs to be handled like a success return value.
2024-04-04 14:55:37 +02:00