-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squash app4triqs/3.3.x to reduce skeleton history when tracking
Co-authored-by: Dylan Simon <dylan@dylex.net> Co-authored-by: Alexander Hampel <ahampel@flatironinstitute.org>
- Loading branch information
Showing
89 changed files
with
3,948 additions
and
0 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,45 @@ | ||
BasedOnStyle: LLVM | ||
|
||
AccessModifierOffset: 0 | ||
AlignAfterOpenBracket: Align | ||
AlignConsecutiveAssignments: true | ||
AlignConsecutiveDeclarations: false | ||
AlignEscapedNewlinesLeft: false | ||
AlignOperands: false | ||
AlignTrailingComments: true | ||
AllowAllParametersOfDeclarationOnNextLine: false | ||
AllowShortBlocksOnASingleLine: true | ||
AllowShortCaseLabelsOnASingleLine: true | ||
AllowShortFunctionsOnASingleLine: All | ||
AllowShortIfStatementsOnASingleLine: true | ||
AllowShortLoopsOnASingleLine: true | ||
AlwaysBreakBeforeMultilineStrings: true | ||
AlwaysBreakTemplateDeclarations: false | ||
BinPackArguments: true | ||
BinPackParameters: true | ||
BreakBeforeBinaryOperators: NonAssignment | ||
BreakBeforeBraces: Attach | ||
BreakBeforeTernaryOperators: false | ||
BreakConstructorInitializersBeforeComma: false | ||
BreakStringLiterals: false | ||
ColumnLimit: 150 | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: true | ||
ConstructorInitializerIndentWidth: 3 | ||
ContinuationIndentWidth: 3 | ||
Cpp11BracedListStyle: true | ||
DerivePointerBinding : false | ||
IndentCaseLabels: true | ||
IndentWidth: 2 | ||
Language: Cpp | ||
MaxEmptyLinesToKeep: 1 | ||
NamespaceIndentation : All | ||
PointerAlignment: Right | ||
ReflowComments: false | ||
SortIncludes: false | ||
SpaceAfterControlStatementKeyword: true | ||
SpaceBeforeAssignmentOperators: true | ||
SpaceInEmptyParentheses: false | ||
SpacesInParentheses: false | ||
Standard: Cpp11 | ||
TabWidth: 2 | ||
UseTab: Never |
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,2 @@ | ||
Checks: '-*,modernize-*,cppcoreguidelines-*,bugprone-*,-modernize-use-trailing-return-type,-cppcoreguidelines-special-member-functions,-cppcoreguidelines-macro-usage,-cppcoreguidelines-no-malloc,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-cppcoreguidelines-pro-bounds-constant-array-index,-cppcoreguidelines-avoid-magic-numbers, -cppcoreguidelines-non-private-member-variables-in-classes, -bugprone-easily-swappable-parameters' | ||
HeaderFilterRegex: 'app4triqs' |
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,5 @@ | ||
.travis.yml | ||
Dockerfile | ||
Jenkinsfile | ||
.git/objects/pack | ||
build* |
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,45 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: Bug report | ||
labels: bug | ||
|
||
--- | ||
|
||
### Prerequisites | ||
|
||
* Please check that a similar issue isn't already filed: https://github.com/issues?q=is%3Aissue+user%3Atriqs | ||
|
||
### Description | ||
|
||
[Description of the issue] | ||
|
||
### Steps to Reproduce | ||
|
||
1. [First Step] | ||
2. [Second Step] | ||
3. [and so on...] | ||
|
||
or paste a minimal code example to reproduce the issue. | ||
|
||
**Expected behavior:** [What you expect to happen] | ||
|
||
**Actual behavior:** [What actually happens] | ||
|
||
### Versions | ||
|
||
Please provide the application version that you used. | ||
|
||
You can get this information from copy and pasting the output of | ||
```bash | ||
python -c "from app4triqs.version import *; show_version(); show_git_hash();" | ||
``` | ||
from the command line. Also, please include the OS you are running and its version. | ||
|
||
### Formatting | ||
|
||
Please use markdown in your issue message. A useful summary of commands can be found [here](https://guides.github.com/pdfs/markdown-cheatsheet-online.pdf). | ||
|
||
### Additional Information | ||
|
||
Any additional information, configuration or data that might be necessary to reproduce the issue. |
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,23 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: Feature request | ||
labels: feature | ||
|
||
--- | ||
|
||
### Summary | ||
|
||
One paragraph explanation of the feature. | ||
|
||
### Motivation | ||
|
||
Why is this feature of general interest? | ||
|
||
### Implementation | ||
|
||
What user interface do you suggest? | ||
|
||
### Formatting | ||
|
||
Please use markdown in your issue message. A useful summary of commands can be found [here](https://guides.github.com/pdfs/markdown-cheatsheet-online.pdf). |
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,140 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
branches: [ unstable, '[0-9]+.[0-9]+.x' ] | ||
pull_request: | ||
branches: [ unstable, '[0-9]+.[0-9]+.x' ] | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
env: | ||
CMAKE_C_COMPILER_LAUNCHER: ccache | ||
CMAKE_CXX_COMPILER_LAUNCHER: ccache | ||
CCACHE_COMPILERCHECK: content | ||
CCACHE_BASEDIR: ${{ github.workspace }} | ||
CCACHE_DIR: ${{ github.workspace }}/.ccache | ||
CCACHE_MAXSIZE: 500M | ||
CCACHE_SLOPPINESS: pch_defines,time_macros,include_file_mtime,include_file_ctime | ||
CCACHE_COMPRESS: "1" | ||
CCACHE_COMPRESSLEVEL: "1" | ||
|
||
jobs: | ||
build: | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- {os: ubuntu-22.04, cc: gcc-12, cxx: g++-12} | ||
- {os: ubuntu-22.04, cc: clang-15, cxx: clang++-15} | ||
- {os: macos-12, cc: gcc-12, cxx: g++-12} | ||
- {os: macos-12, cc: clang, cxx: clang++} | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/cache/restore@v4 | ||
with: | ||
path: ${{ env.CCACHE_DIR }} | ||
key: ccache-${{ matrix.os }}-${{ matrix.cc }}-${{ github.run_id }} | ||
restore-keys: | ||
ccache-${{ matrix.os }}-${{ matrix.cc }}- | ||
|
||
- name: Install ubuntu dependencies | ||
if: matrix.os == 'ubuntu-22.04' | ||
run: > | ||
sudo apt-get update && | ||
sudo apt-get install lsb-release wget software-properties-common && | ||
wget -O /tmp/llvm.sh https://apt.llvm.org/llvm.sh && sudo chmod +x /tmp/llvm.sh && sudo /tmp/llvm.sh 15 && | ||
sudo apt-get install | ||
ccache | ||
clang-15 | ||
g++-12 | ||
gfortran | ||
hdf5-tools | ||
libblas-dev | ||
libboost-dev | ||
libclang-15-dev | ||
libc++-15-dev | ||
libc++abi-15-dev | ||
libomp-15-dev | ||
libfftw3-dev | ||
libgfortran5 | ||
libgmp-dev | ||
libhdf5-dev | ||
liblapack-dev | ||
libopenmpi-dev | ||
openmpi-bin | ||
openmpi-common | ||
openmpi-doc | ||
python3-clang-15 | ||
python3-dev | ||
python3-mako | ||
python3-matplotlib | ||
python3-mpi4py | ||
python3-numpy | ||
python3-pip | ||
python3-scipy | ||
python3-sphinx | ||
python3-nbsphinx | ||
- name: Install homebrew dependencies | ||
if: matrix.os == 'macos-12' | ||
run: | | ||
brew install ccache gcc@12 llvm boost fftw hdf5 open-mpi openblas | ||
mkdir $HOME/.venv | ||
python3 -m venv $HOME/.venv/my_python | ||
source $HOME/.venv/my_python/bin/activate | ||
pip install mako numpy scipy mpi4py | ||
pip install -r requirements.txt | ||
echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> $GITHUB_ENV | ||
echo "PATH=$PATH" >> $GITHUB_ENV | ||
- name: add clang cxxflags | ||
if: ${{ contains(matrix.cxx, 'clang') }} | ||
run: | | ||
echo "PATH=/usr/local/opt/llvm/bin:$PATH" >> $GITHUB_ENV | ||
echo "CXXFLAGS=-stdlib=libc++" >> $GITHUB_ENV | ||
- name: Build & Install TRIQS | ||
env: | ||
CC: ${{ matrix.cc }} | ||
CXX: ${{ matrix.cxx }} | ||
run: | | ||
git clone https://github.com/TRIQS/triqs --branch unstable | ||
mkdir triqs/build && cd triqs/build | ||
cmake .. -DBuild_Tests=OFF -DCMAKE_INSTALL_PREFIX=$HOME/install | ||
make -j1 install VERBOSE=1 | ||
cd ../ | ||
- name: Build app4triqs | ||
env: | ||
CC: ${{ matrix.cc }} | ||
CXX: ${{ matrix.cxx }} | ||
LIBRARY_PATH: /usr/local/opt/llvm/lib | ||
run: | | ||
source $HOME/install/share/triqs/triqsvars.sh | ||
mkdir build && cd build && cmake .. | ||
make -j2 || make -j1 VERBOSE=1 | ||
- name: Test app4triqs | ||
env: | ||
DYLD_FALLBACK_LIBRARY_PATH: /usr/local/opt/llvm/lib | ||
OPENBLAS_NUM_THREADS: "1" | ||
run: | | ||
source $HOME/install/share/triqs/triqsvars.sh | ||
cd build | ||
ctest -j2 --output-on-failure | ||
- name: ccache statistics | ||
if: always() | ||
run: ccache -sv | ||
|
||
- uses: actions/cache/save@v4 | ||
if: always() | ||
with: | ||
path: ${{ env.CCACHE_DIR }} | ||
key: ccache-${{ matrix.os }}-${{ matrix.cc }}-${{ github.run_id }} |
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,3 @@ | ||
compile_commands.json | ||
doc/_autosummary | ||
doc/cpp2rst_generated |
Oops, something went wrong.