Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
barne856 committed Aug 31, 2024
1 parent 4ae67c1 commit 7ecbf31
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions include/squint/tensor/cuda/cuda_context.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// NOLINTBEGIN
#ifndef SQUINT_TENSOR_CUDA_CONTEXT_HPP
#include <cublas_v2.h>
#include <cuda_runtime.h>
Expand Down Expand Up @@ -38,4 +37,3 @@ class CudaContext {

} // namespace squint::cuda
#endif // SQUINT_TENSOR_CUDA_CONTEXT_HPP
// NOLINTEND
2 changes: 0 additions & 2 deletions include/squint/tensor/cuda/element_wise.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// NOLINTBEGIN
#ifndef SQUINT_TENSOR_CUDA_ELEMENT_WISE_HPP

template <typename T>
Expand All @@ -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
3 changes: 0 additions & 3 deletions src/tensor/cuda/element_wise.cu
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// NOLINTBEGIN
#include <cuda_runtime.h>
#include <device_launch_parameters.h>

Expand Down Expand Up @@ -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

0 comments on commit 7ecbf31

Please sign in to comment.