From 0ae8cdfba5b03a38ddabe4fe2c64ba4add52c6eb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 13 Mar 2024 20:06:04 +0100 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#307) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/mirrors-clang-format: v17.0.6 → v18.1.1](https://github.com/pre-commit/mirrors-clang-format/compare/v17.0.6...v18.1.1) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- pyg_lib/csrc/ops/cuda/sampled_kernel.cu | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 = {