Skip to content

Commit

Permalink
Merge pull request #13963 from tamiko/fix_vectorization_warning
Browse files Browse the repository at this point in the history
CMake: Use -Wno-pass-failed for clang
  • Loading branch information
tamiko committed Jun 13, 2022
2 parents f84ecd4 + 0f7abb7 commit 6952e1b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cmake/setup_compiler_flags_gnu.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,19 @@ IF(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
CMAKE_CXX_COMPILER_VERSION VERSION_LESS "6.3") )
ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-unused-function")
ENDIF()

#
# Clang-14.0.5 complaines loudly about not being able to vectorize some
# of our loops that we have annotated with DEAL_II_OPENMP_SIMD:
#
# warning: loop not vectorized: the optimizer was unable to perform
# the requested transformation; the transformation might be disabled
# or specified as part of an unsupported transformation ordering
# [-Wpass-failed=transform-warning]
#
# Let us simply disable the warning for now.
#
ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-pass-failed")
ENDIF()


Expand Down

0 comments on commit 6952e1b

Please sign in to comment.