diff --git a/.github/workflows/pr-test-sgl-kernel.yml b/.github/workflows/pr-test-sgl-kernel.yml index df059c1f4..8c8d5ce97 100644 --- a/.github/workflows/pr-test-sgl-kernel.yml +++ b/.github/workflows/pr-test-sgl-kernel.yml @@ -27,7 +27,7 @@ jobs: with: source: sgl-kernel extensions: h,c,cpp,hpp,cu,cuh,cc - clangFormatVersion: 16 + clangFormatVersion: 18 style: file build-wheels: diff --git a/sgl-kernel/src/sgl-kernel/include/utils.h b/sgl-kernel/src/sgl-kernel/include/utils.h index b2960954b..79bf84671 100644 --- a/sgl-kernel/src/sgl-kernel/include/utils.h +++ b/sgl-kernel/src/sgl-kernel/include/utils.h @@ -94,7 +94,7 @@ inline int getSMVersion() { #define DISPATCH_INTEGRAL_TYPES(TYPE, NAME, ...) \ AT_DISPATCH_SWITCH(TYPE, NAME, DISPATCH_CASE_INTEGRAL_TYPES(__VA_ARGS__)) -#define CEILDIV(x, y) (((x) + (y)-1) / (y)) +#define CEILDIV(x, y) (((x) + (y) - 1) / (y)) #define WARP_SIZE 32 #ifndef USE_ROCM