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
This commit is contained in:
Min Si
2022-09-07 08:56:05 -07:00
zatwierdzone przez GitHub
rodzic 47b2fc3a30
commit 2b57751abb
3 zmienionych plików z 4 dodań i 4 usunięć
+2 -2
Wyświetl plik
@@ -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;
}