-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* clang tidy in CI * OpenMP not found for clang * exclude benchmark * fix exclude header filter * Do not build benchmark for clang-tidy * modernize-type-traits * fix: enable benchmark in CI * fix: .clang-tidy based on the review --------- Co-authored-by: Yuuichi Asahi <[email protected]>
- Loading branch information
1 parent
0abd008
commit a48cf5a
Showing
8 changed files
with
107 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# SPDX-FileCopyrightText: (C) The Kokkos-FFT development team, see COPYRIGHT.md file | ||
# | ||
# SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception | ||
|
||
Checks: '-*,modernize-type-traits,modernize-use-using,modernize-use-nullptr,cppcoreguidelines-pro-type-cstyle-cast' | ||
FormatStyle: file | ||
HeaderFileExtensions: ['h','hh','hpp','hxx'] | ||
ImplementationFileExtensions: ['c','cc','cpp','cxx'] | ||
HeaderFilterRegex: '(common|fft).*\.hpp' | ||
ExcludeHeaderFilterRegex: 'tpls.*\.hpp' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# SPDX-FileCopyrightText: (C) The Kokkos-FFT development team, see COPYRIGHT.md file | ||
# | ||
# SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception | ||
|
||
ARG BASE=ubuntu:latest | ||
FROM $BASE | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
wget \ | ||
gnupg \ | ||
lsb-release \ | ||
software-properties-common \ | ||
git \ | ||
bc \ | ||
ccache \ | ||
libfftw3-dev \ | ||
&& \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ENV FFTWDIR "/usr" | ||
|
||
RUN git config --global --add safe.directory "*" | ||
|
||
# Add the official LLVM repository to install Clang and Clang-tidy version 19 | ||
RUN wget https://apt.llvm.org/llvm.sh && \ | ||
chmod +x llvm.sh && \ | ||
./llvm.sh 19 | ||
|
||
# Install Clang++ version 19 and Clang-tidy version 19 | ||
RUN apt-get update && apt-get install -y \ | ||
clang-19 \ | ||
clang-tidy-19 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN KEYDUMP_URL=https://cloud.cees.ornl.gov/download && \ | ||
KEYDUMP_FILE=keydump && \ | ||
wget --quiet ${KEYDUMP_URL}/${KEYDUMP_FILE} && \ | ||
wget --quiet ${KEYDUMP_URL}/${KEYDUMP_FILE}.sig && \ | ||
gpg --import ${KEYDUMP_FILE} && \ | ||
gpg --verify ${KEYDUMP_FILE}.sig ${KEYDUMP_FILE} && \ | ||
rm ${KEYDUMP_FILE}* | ||
|
||
ARG CMAKE_VERSION=3.23.2 | ||
ENV CMAKE_DIR=/opt/cmake | ||
RUN CMAKE_URL=https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION} && \ | ||
CMAKE_SCRIPT=cmake-${CMAKE_VERSION}-Linux-x86_64.sh && \ | ||
CMAKE_SHA256=cmake-${CMAKE_VERSION}-SHA-256.txt && \ | ||
wget --quiet ${CMAKE_URL}/${CMAKE_SHA256} && \ | ||
wget --quiet ${CMAKE_URL}/${CMAKE_SHA256}.asc && \ | ||
wget --quiet ${CMAKE_URL}/${CMAKE_SCRIPT} && \ | ||
gpg --verify ${CMAKE_SHA256}.asc ${CMAKE_SHA256} && \ | ||
grep -i ${CMAKE_SCRIPT} ${CMAKE_SHA256} | sed -e s/linux/Linux/ | sha256sum --check && \ | ||
mkdir -p ${CMAKE_DIR} && \ | ||
sh ${CMAKE_SCRIPT} --skip-license --prefix=${CMAKE_DIR} && \ | ||
rm cmake* | ||
ENV PATH=${CMAKE_DIR}/bin:$PATH | ||
|
||
# Set Clang 19 as the default Clang and Clang++ | ||
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-19 100 \ | ||
&& update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-19 100 \ | ||
&& update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-19 100 | ||
|
||
WORKDIR /work | ||
CMD ["bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters