Skip to content

Commit

Permalink
Moved the flag update to benchmark/CMakelists.txt file
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammad-tanvir-1211 committed Feb 22, 2024
1 parent dcfda55 commit 98223aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 0 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,6 @@ if (MSVC)
)
endif()

# update CXX_FLAGS to avoid error when building benchmarks
# in case of icpx compiler:
# explicit comparison with NaN in fast floating point mode [-Werror,-Wtautological-constant-compare]
# https://github.com/dealii/dealii/issues/14693
string(FIND ${CMAKE_CXX_COMPILER} "icpx" found_icpx)
if(${found_icpx} GREATER -1 AND ${BLAS_ENABLE_BENCHMARK})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=tautological-constant-compare")
endif()

# By default, tall and skinny Gemm is enabled (for better performance)
option(GEMM_TALL_SKINNY_SUPPORT "Whether to enable tall and skinny Gemm" ON)
# By default vectorization in gemm kernels is enabled as it imrpove the performance on all Devices.
Expand Down
9 changes: 9 additions & 0 deletions benchmark/portblas/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ if(BLAS_VERIFY_BENCHMARK)
find_package(SystemBLAS REQUIRED)
endif()

# update CXX_FLAGS to avoid error when building benchmarks
# in case of icpx compiler:
# explicit comparison with NaN in fast floating point mode [-Werror,-Wtautological-constant-compare]
# https://github.com/dealii/dealii/issues/14693
string(FIND ${CMAKE_CXX_COMPILER} "icpx" found_icpx)
if(${found_icpx} GREATER -1)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=tautological-constant-compare")
endif()

set(sources
# Level 1 blas
blas1/axpy.cpp
Expand Down

0 comments on commit 98223aa

Please sign in to comment.