Skip to content

Commit c2aa687

Browse files
committed
clang-format
1 parent d9dad5e commit c2aa687

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

flagcx/core/flagcx_p2p.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,8 @@ static int detectPtrTypeAndMaybeCacheIpc(void *ptr, char *ipcHandleBuf,
14771477
deviceAdaptor->ipcMemHandleFree(handle);
14781478
return FLAGCX_PTR_CUDA;
14791479
}
1480-
if (deviceAdaptor->getLastError) deviceAdaptor->getLastError();
1480+
if (deviceAdaptor->getLastError)
1481+
deviceAdaptor->getLastError();
14811482
deviceAdaptor->ipcMemHandleFree(handle);
14821483
return FLAGCX_PTR_HOST;
14831484
}
@@ -3500,9 +3501,8 @@ int flagcxP2pRpcRegisterHost(void *engine, uint64_t addr, uint64_t size,
35003501
return -1;
35013502
FlagcxP2pMr mrId = 0;
35023503
const int rc = flagcxP2pEngineRegEx(
3503-
reinterpret_cast<FlagcxP2pEngine *>(engine),
3504-
static_cast<uintptr_t>(addr), static_cast<size_t>(size),
3505-
FLAGCX_PTR_HOST, mrId);
3504+
reinterpret_cast<FlagcxP2pEngine *>(engine), static_cast<uintptr_t>(addr),
3505+
static_cast<size_t>(size), FLAGCX_PTR_HOST, mrId);
35063506
if (rc != 0)
35073507
return rc;
35083508
*mrIdOut = mrId;

flagcx/include/flagcx_p2p.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ int flagcxP2pRpcRegister(void *engine, uint64_t addr, uint64_t size,
619619
uint64_t *mrIdOut);
620620

621621
/* Same interface as flagcxP2pRpcRegister, but on chips/adaptors whose runtime
622-
cannot reset the current error state, this host entry avoids producing the
622+
cannot reset the current error state, this host entry avoids producing the
623623
error at all. */
624624
int flagcxP2pRpcRegisterHost(void *engine, uint64_t addr, uint64_t size,
625625
uint64_t *mrIdOut);

0 commit comments

Comments
 (0)