From 7ecbf313093710f664157040ab6fdd88ae89c993 Mon Sep 17 00:00:00 2001 From: Brendan Barnes <barne856@umn.edu> Date: Sat, 31 Aug 2024 05:22:27 +0000 Subject: [PATCH] save --- .github/workflows/build_and_test.yml | 6 ++++-- include/squint/tensor/cuda/cuda_context.hpp | 2 -- include/squint/tensor/cuda/element_wise.hpp | 2 -- src/tensor/cuda/element_wise.cu | 3 --- 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 9041d8f..eec114c 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -121,8 +121,10 @@ jobs: - name: Run Clang-Tidy if: matrix.compiler == 'clang' && runner.os == 'Linux' && matrix.blas == 'NONE' run: | - find ./include/squint -name '*.cpp' -or -name '*.hpp' | \ - xargs -P $(nproc) -I {} bash -c 'clang-tidy-19 -p build {}' > clang_tidy_output.txt + find ./include/squint \ + -not -path './include/squint/tensor/cuda/*' \ + \( -name '*.cpp' -or -name '*.hpp' \) | \ + xargs -P $(nproc) -I {} bash -c 'clang-tidy-19 -p build {}' > clang_tidy_output.txt if [ -s clang_tidy_output.txt ]; then echo "Clang-Tidy found issues:" cat clang_tidy_output.txt diff --git a/include/squint/tensor/cuda/cuda_context.hpp b/include/squint/tensor/cuda/cuda_context.hpp index 3d34fef..6745550 100644 --- a/include/squint/tensor/cuda/cuda_context.hpp +++ b/include/squint/tensor/cuda/cuda_context.hpp @@ -1,4 +1,3 @@ -// NOLINTBEGIN #ifndef SQUINT_TENSOR_CUDA_CONTEXT_HPP #include <cublas_v2.h> #include <cuda_runtime.h> @@ -38,4 +37,3 @@ class CudaContext { } // namespace squint::cuda #endif // SQUINT_TENSOR_CUDA_CONTEXT_HPP - // NOLINTEND \ No newline at end of file diff --git a/include/squint/tensor/cuda/element_wise.hpp b/include/squint/tensor/cuda/element_wise.hpp index e0d6048..536cff0 100644 --- a/include/squint/tensor/cuda/element_wise.hpp +++ b/include/squint/tensor/cuda/element_wise.hpp @@ -1,4 +1,3 @@ -// NOLINTBEGIN #ifndef SQUINT_TENSOR_CUDA_ELEMENT_WISE_HPP template <typename T> @@ -7,4 +6,3 @@ void element_wise_addition(T *output, const T *a, const T *b, const unsigned lon const unsigned long *strides_b, unsigned long num_dims, unsigned long total_size); #endif // SQUINT_TENSOR_CUDA_ELEMENT_WISE_HPP - // NOLINTEND \ No newline at end of file diff --git a/src/tensor/cuda/element_wise.cu b/src/tensor/cuda/element_wise.cu index c9e9c2f..6e94fea 100644 --- a/src/tensor/cuda/element_wise.cu +++ b/src/tensor/cuda/element_wise.cu @@ -1,4 +1,3 @@ -// NOLINTBEGIN #include <cuda_runtime.h> #include <device_launch_parameters.h> @@ -46,5 +45,3 @@ template void element_wise_addition<double>(double *output, const double *a, con const unsigned long *strides_out, const unsigned long *strides_a, const unsigned long *strides_b, unsigned long num_dims, unsigned long total_size); - -// NOLINTEND \ No newline at end of file