Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

fix clang-tidy issues #123

Merged
merged 3 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/cpp-graph-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
- '.github/workflows/scripts/models/cpp_graph_inference.sh'
- 'neural_speed/**'
- 'bestla/**'
- 'CMakeLists.txt'
- 'setup.py'
- '!**/*.md'
workflow_dispatch:
inputs:
compiler_version:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/format_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- neural_speed/**
- bestla/**
- scripts/**
- clang-format.py
- setup.py
- .github/workflows/format_scan.yml
- .github/workflows/scripts/formatScan/**
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scripts/formatScan/clangtidy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cd build
cmake .. -G Ninja -DNS_USE_CLANG_TIDY=CHECK -DBTLA_USE_OPENMP=OFF
ninja 2>&1 | tee ${log_path}

if [[ ! -f ${log_path} ]] || [[ $(grep -c "warning:" ${log_path}) != 0 ]]; then
if [[ ! -f ${log_path} ]] || [[ $(grep -c "warning:" ${log_path}) != 0 ]] || [[ $(grep -c "error" ${log_path}) != 0 ]]; then
exit 1
fi
$BOLD_PURPLE && echo "Congratulations, check passed!" && $LIGHT_PURPLE && echo "You can click on the artifact button to see the log details." && $RESET
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/unit-test-llmruntime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
- tests/**
- .github/workflows/unit-test-llmruntime.yml
- .github/workflows/unitTest/**
- 'CMakeLists.txt'
- 'setup.py'
- '!**/*.md'
workflow_dispatch:

# If there is a new commit, the previous jobs will be canceled
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ debug/
dist/
.cache/
.clangd
CMakeUserPresets.json
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ if (NS_BTLA_UT)
endif()
include(FindOpenMP)

set(BTLA_USE_OPENMP ON CACHE BOOL "BesTLA use OpenMP" FORCE)
set(BTLA_USE_OPENMP ON CACHE BOOL "BesTLA use OpenMP")
add_subdirectory(bestla)

add_subdirectory(neural_speed)
Loading