diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3dae08db7..8245a70d3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -44,7 +44,7 @@ repos: name: Check PEP8 - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v17.0.6 + rev: v18.1.1 hooks: - id: clang-format name: Format C++ code diff --git a/pyg_lib/csrc/ops/cuda/sampled_kernel.cu b/pyg_lib/csrc/ops/cuda/sampled_kernel.cu index e36a83a32..f28ab47b5 100644 --- a/pyg_lib/csrc/ops/cuda/sampled_kernel.cu +++ b/pyg_lib/csrc/ops/cuda/sampled_kernel.cu @@ -8,7 +8,7 @@ namespace ops { namespace { #define THREADS 1024 -#define CDIV(N, M) ((N) + (M)-1) / (M) +#define CDIV(N, M) ((N) + (M) - 1) / (M) enum FnType { ADD, SUB, MUL, DIV }; const std::map to_fn_type = {