Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Enable warning flags #348

Merged
merged 6 commits into from
Jun 20, 2024

Conversation

masterleinad
Copy link
Contributor

It turns out that the builds in cmake.yml are mostly fine with -Werror -Wall -Wextra -pedantic:

  • We get a bunch of warnings for unused variables building in RelWithDebInfo since that uses -DNDEBUG disabling a lot of asserts. Since we want these asserts to trigger, I changed the build type to Debug.
  • clang complains about -Wc++17-attribute-extensions when using [[maybe_unused]] which seems harmless.
  • clang complains about using variadic macros with empty ellipsis via -Wno-gnu-zero-variadic-macro-arguments which also seems harmless
  • The other changes are about redundant semicolons or unused arguments.

- compiler_driver: icpx
compiler_prefix: /opt/intel/oneapi/compiler/latest/linux/bin
# To get new URL, look here:
# https://www.intel.com/content/www/us/en/developer/articles/tool/oneapi-standalone-components.html#inpage-nav-6-undefined
compiler_url: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/ebf5d9aa-17a7-46a4-b5df-ace004227c0e/l_dpcpp-cpp-compiler_p_2023.2.1.8_offline.sh
cxx_flags_extra: "-DMDSPAN_USE_BRACKET_OPERATOR=0"
cxx_flags_extra: "-DMDSPAN_USE_BRACKET_OPERATOR=0 -Wno-c++17-attribute-extensions -Wno-gnu-zero-variadic-macro-arguments"
- enable_benchmark: ON
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't switching to Debug affect the benchmark times? Maybe we should add build type to the matrix

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these benchmark times recorded anywhere? To me, it seems we really only test correctness in the CI.

@crtrott crtrott merged commit 51779cc into kokkos:stable Jun 20, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants