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

Commit

Permalink
add compile-check and warning as err
Browse files Browse the repository at this point in the history
  • Loading branch information
zhewang1-intc committed Jan 12, 2024
1 parent 35f65e7 commit 57ef3fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/unit-test-bestla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ jobs:
- name: Check Result
run: |
if [[ $(grep -c "No such file or directory" ${{ github.workspace }}/bestla/build/unit_test_bestla.log) != 0 ]]; then
echo "neural-speed Compile Failed"
exit 1
if [[ $(grep -c "Case Failed" ${{ github.workspace }}/bestla/build/unit_test_bestla.log) != 0 ]]; then
echo "UT Failed! Please check UT log."
exit 1
Expand Down
1 change: 1 addition & 0 deletions bestla/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ project(bestla LANGUAGES CXX VERSION 0.1.0)
file(GLOB headers ${PROJECT_NAME}/*.h ${PROJECT_NAME}/*.hpp)
file(GLOB xbyak_headers ${PROJECT_NAME}/xbyak/*.h ${PROJECT_NAME}/xbyak/*.hpp)

set(CMAKE_CXX_FLAGS "-Wall -Werror")
option(BTLA_USE_OPENMP "Enable OpenMP thread pool" ON)

option(BTLA_UT_ALL "Enable all unit tests" OFF)
Expand Down

0 comments on commit 57ef3fa

Please sign in to comment.