-
Notifications
You must be signed in to change notification settings - Fork 407
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
Guard against unrecognized pragma with intel compilers #5019
Conversation
Force pushed fix for clang-format |
Ug, wait, clang-format made a bad conversion, from e.g. pre-clang-format #if defined(__EDG__) && !defined(KOKKOS_COMPILER_INTEL)
#pragma push
#pragma diag_suppress implicit_return_from_non_void_function
#endif to post-clang-format #if defined(__EDG__) && !defined(KOKKOS_COMPILER_INTEL)
#pragma push && !defined(KOKKOS_COMPILER_INTEL)
#pragma diag_suppress implicit_return_from_non_void_function
#endif @dalg24 should I disable the clang-format check around these guards? Not sure why the formatting made this type of change... (sorry for double ping, accidentally posted on the issue first instead of here) |
core/src/impl/Kokkos_BitOps.hpp
Outdated
#if defined(__EDG__) | ||
#pragma push | ||
#if defined(__EDG__) && !defined(KOKKOS_COMPILER_INTEL) | ||
#pragma push && !defined(KOKKOS_COMPILER_INTEL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this copy paste error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@crtrott clang-format error, not sure how to prevent it without breaking the clang-format check, any suggestions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed now
core/src/impl/Kokkos_BitOps.hpp
Outdated
#pragma diag_suppress implicit_return_from_non_void_function | ||
#endif | ||
KOKKOS_FORCEINLINE_FUNCTION | ||
int int_log2(unsigned i) { | ||
KOKKOS_IF_ON_DEVICE((return int_log2_device(i);)) | ||
KOKKOS_IF_ON_HOST((return int_log2_host(i);)) | ||
} | ||
#if defined(__EDG__) | ||
#if defined(__EDG__) && !defined(KOKKOS_COMPILER_INTEL) && \ | ||
!defined(KOKKOS_COMPILER_INTEL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why twice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@crtrott clang-format error, not sure how to prevent it without breaking the clang-format check, any suggestions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed now
Failed at clang-tidy step due to some apparent Jenkins connectivity issue:
@dalg24 is this okay to merge without retesting? |
Address issue #5018