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

Update build system for Clang 10 #4084

Merged
merged 10 commits into from
Jan 13, 2021
Merged

Update build system for Clang 10 #4084

merged 10 commits into from
Jan 13, 2021

Conversation

jngrad
Copy link
Member

@jngrad jngrad commented Jan 7, 2021

Description of changes:

  • fix Clang's -Wimplicit-float-conversion everywhere (enabled by default in Clang 10 in constant expressions), fixes Implicit float conversions raise warnings in Clang 10 #4082
  • exclude the ScaFaCoS and Stokesian Dynamics external libraries from Clang-Tidy using the SYSTEM method already used by Random123 and h5xx (ScaFaCoS raises several alerts in Clang-Tidy 10)
  • make NVCC and Clang consistent in which sm_XY architecture(s) get compiled depending on the CUDA version

jngrad added 7 commits January 6, 2021 14:19
Use sm_52 for CUDA 11 and sm_30 for CUDA 10.
The latest version has fixed -Wimplicit-float-conversion and has
added missing includes.
Source files from external libraries are ignored by Clang-Tidy.
Header files from external libraries are not ignored when included
in source files from the current project. For example with Clang 10,
ScaFaCoS triggers multiple alerts, e.g. bugprone-macro-parentheses
and modernize-deprecated-headers. However, Clang-Tidy ignores header
files from folder included with -isystem instead of -I, so that you
can exclude them by marking them as SYSTEM.
@jngrad jngrad requested a review from itischler January 12, 2021 12:39
KaiSzuttor
KaiSzuttor previously approved these changes Jan 13, 2021
@KaiSzuttor KaiSzuttor added the automerge Merge with kodiak label Jan 13, 2021
@jngrad
Copy link
Member Author

jngrad commented Jan 13, 2021

There's no point in adding the automerge label if the CI infrastructure is down :-)

@KaiSzuttor
Copy link
Member

There's no point in adding the automerge label if the CI infrastructure is down :-)

so i cant express that i want to merge if our infrastructure is down?

@jngrad
Copy link
Member Author

jngrad commented Jan 13, 2021

There's no point in adding the automerge label if the CI infrastructure is down :-)

so i cant express that i want to merge if our infrastructure is down?

The merge commit will fail and kodiak will try to merge the following PRs in the queue, which will also fail. In the end we'll have merge commits everywhere, and once CI is up again, kodiak will have to introduce more merge commits since all PRs in the queue will outdate each other. We had this situation on December 19, if you remember.

@reinaual reinaual added the automerge Merge with kodiak label Jan 13, 2021
@kodiakhq kodiakhq bot merged commit 979acef into espressomd:python Jan 13, 2021
@jngrad jngrad deleted the fix-4082 branch January 13, 2021 16:12
@jngrad jngrad added this to the Espresso 4.2 milestone Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implicit float conversions raise warnings in Clang 10
3 participants