File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 1313
1414UR_APIEXPORT ur_result_t UR_APICALL urUsmP2PEnablePeerAccessExp (
1515 ur_device_handle_t commandDevice, ur_device_handle_t peerDevice) {
16-
17- ur_result_t result = UR_RESULT_SUCCESS;
1816 try {
1917 ScopedContext active (commandDevice->getContext ());
2018 UR_CHECK_ERROR (cuCtxEnablePeerAccess (peerDevice->getContext (), 0 ));
2119 } catch (ur_result_t err) {
22- result = err;
20+ return err;
2321 }
24- return result ;
22+ return UR_RESULT_SUCCESS ;
2523}
2624
2725UR_APIEXPORT ur_result_t UR_APICALL urUsmP2PDisablePeerAccessExp (
2826 ur_device_handle_t commandDevice, ur_device_handle_t peerDevice) {
29-
30- ur_result_t result = UR_RESULT_SUCCESS;
3127 try {
3228 ScopedContext active (commandDevice->getContext ());
3329 UR_CHECK_ERROR (cuCtxDisablePeerAccess (peerDevice->getContext ()));
3430 } catch (ur_result_t err) {
35- result = err;
31+ return err;
3632 }
37- return result ;
33+ return UR_RESULT_SUCCESS ;
3834}
3935
4036UR_APIEXPORT ur_result_t UR_APICALL urUsmP2PPeerAccessGetInfoExp (
You can’t perform that action at this time.
0 commit comments