From 8d323e95e4406d5663725b177571757c1d402e1e Mon Sep 17 00:00:00 2001 From: Lianmin Zheng Date: Sat, 8 Mar 2025 01:28:10 -0800 Subject: [PATCH] Use clang format 18 in pr-test-sgl-kernel.yml (#4203) --- .github/workflows/pr-test-sgl-kernel.yml | 2 +- sgl-kernel/src/sgl-kernel/include/utils.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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