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

Add clang-13 to CI #1485

Merged
merged 2 commits into from Dec 17, 2021
Merged

Conversation

bernhardmgruber
Copy link
Member

@bernhardmgruber bernhardmgruber commented Nov 30, 2021

Adds clang-13 to the CI and updates the Catch2 version used.
Fixes #1476.

The new Catch2 version is unreleased. It contains an important bug fix that is necessary to compile with clang-13. Since we vendor Catch2 ourselves, everybody who builds with the vendored Catch2 can build the alpaka tests using clang-13. Everybody else, that uses their own Catch2, can still build all unit tests but not with clang-13, until Catch2 releases a new version including the bug fix.

@bernhardmgruber
Copy link
Member Author

Looks like clang-13 is not available on Ubuntu 20.04 from the standard repositories.

@SimeonEhrig
Copy link
Member

At the moment, I working on this subject for the GitLab Container. You need to add the following ppa's:

deb http://apt.llvm.org/focal/ llvm-toolchain-focal-13 main
deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-13 main

j-stephan
j-stephan previously approved these changes Dec 3, 2021
Release 0.9 automation moved this from In progress to Reviewer approved Dec 3, 2021
@bernhardmgruber
Copy link
Member Author

Okay, we finally hit the Catch2 bug, @j-stephan reported a while ago: catchorg/Catch2#578

/home/runner/work/alpaka/alpaka/test/integ/mandelbrot/src/mandelbrot.cpp:259:1: error: identifier '____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____F_U_N_C____0' is reserved because it starts with '__' [-Werror,-Wreserved-identifier]

@bernhardmgruber
Copy link
Member Author

Catch2 issue is fixed on their development branch, includes in this PR.

@j-stephan
Copy link
Member

Also fixes #1388.

@j-stephan j-stephan linked an issue Dec 16, 2021 that may be closed by this pull request
Copy link
Member

@psychocoderHPC psychocoderHPC left a comment

Choose a reason for hiding this comment

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

unfortunately, you missed updating README.md :-(

Please rebase after you updated the file.

Release 0.9 automation moved this from Review in progress to Reviewer approved Dec 17, 2021
@psychocoderHPC
Copy link
Member

This PR passed already the CI but a change in the README was required, therefore I will merge it before the CI is passing.

@psychocoderHPC psychocoderHPC merged commit b1910e8 into alpaka-group:develop Dec 17, 2021
Release 0.9 automation moved this from Reviewer approved to Done Dec 17, 2021
@bernhardmgruber bernhardmgruber deleted the clang13 branch December 17, 2021 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Add clang-13 to CI Tests trigger new -Wreserved-identifier in clang 13+
4 participants