Fix compilation issues with buck (#610)

* Fix compilation warning with -Wmisleading-indentation

When compile with -Wmisleading-indentation, it reports warning:
misleading indentation; statement is not part of the previous 'if'

This patch fixes it

* Avoid relative include file path

We don't need relative include file paths for src/graph/*.h
since src/ is already in CMake include_directories

[ROCm/rccl commit: 2b57751abb]
이 커밋은 다음에 포함됨:
Min Si
2022-09-07 08:56:05 -07:00
커밋한 사람 GitHub
부모 616cb39a0b
커밋 25ba51fe83
3개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
+2 -2
파일 보기
@@ -292,8 +292,8 @@ class ncclFunction {
#endif
__device__ inline bool barrierReduceAny(int bit, uint32_t* abortCount) {
if (bit) atomicAdd(abortCount, 1); \
__syncthreads(); \
if (bit) atomicAdd(abortCount, 1);
__syncthreads();
return atomicAdd(abortCount, 0) != 0;
}
+1 -1
파일 보기
@@ -18,7 +18,7 @@
#include "npkit/npkit.h"
#endif
#include "graph.h"
#include "../graph/topo.h"
#include "graph/topo.h"
static_assert(sizeof(ncclNetHandle_t) <= CONNECT_SIZE, "NET Connect info is too large");
+1 -1
파일 보기
@@ -9,7 +9,7 @@
#include "graph.h"
#include "utils.h"
#include "graph.h"
#include "../graph/topo.h"
#include "graph/topo.h"
struct ncclP2pBuff {
void* directPtr;