Skip to content

Commit 3745f97

Browse files
awvwgkCopilot
andcommitted
Add standalone SkalaXC C++ API and separate guide
First layer of the SkalaXC stack. Preserve the existing GauXC, LibTorch and FTorch integrations and documentation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent e58ec2d commit 3745f97

107 files changed

Lines changed: 15807 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/skalaxc-ci.yml‎

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: SkalaXC
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'SkalaXC/**'
7+
- 'website/skalaxc/**'
8+
- '.github/workflows/skalaxc-ci.yml'
9+
push:
10+
branches: [main]
11+
paths:
12+
- 'SkalaXC/**'
13+
- 'website/skalaxc/**'
14+
- '.github/workflows/skalaxc-ci.yml'
15+
workflow_dispatch:
16+
17+
permissions:
18+
contents: read
19+
20+
jobs:
21+
native:
22+
runs-on: ubuntu-latest
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
include:
27+
- environment: gauxc-openmp
28+
mpi: 'OFF'
29+
submodules: 'false'
30+
- environment: gauxc-mpi
31+
mpi: 'ON'
32+
submodules: recursive
33+
env:
34+
OMP_NUM_THREADS: '4'
35+
OMPI_MCA_pml: ob1
36+
OMPI_MCA_btl: self,tcp
37+
steps:
38+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
39+
with:
40+
submodules: ${{ matrix.submodules }}
41+
- uses: ./.github/actions/setup-pixi
42+
with:
43+
environment: ${{ matrix.environment }}
44+
- name: Configure
45+
run: >-
46+
cmake -S SkalaXC -B SkalaXC/build -G Ninja
47+
-DCMAKE_BUILD_TYPE=Release
48+
-DSKALAXC_BUILD_TESTS=ON -DSKALAXC_BUILD_EXAMPLES=ON
49+
-DSKALAXC_ENABLE_MPI=${{ matrix.mpi }}
50+
-DMPIEXEC_PREFLAGS=--oversubscribe
51+
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/SkalaXC/install
52+
- name: Build and test
53+
run: |
54+
cmake --build SkalaXC/build --parallel 2
55+
ctest --test-dir SkalaXC/build --output-on-failure --no-tests=error
56+
cmake --install SkalaXC/build
57+
SkalaXC/build/examples/skalaxc_eval_cpp SkalaXC/tests/ref_data/skala_he_def2qzvp_pbe_uks.hdf5 PBE
58+
- name: Installed consumer
59+
run: |
60+
cmake -S SkalaXC/tests/installed -B SkalaXC/build-installed -G Ninja \
61+
-DCMAKE_PREFIX_PATH="$PWD/SkalaXC/install"
62+
cmake --build SkalaXC/build-installed
63+
ctest --test-dir SkalaXC/build-installed --output-on-failure --no-tests=error
64+
65+
docs:
66+
runs-on: ubuntu-latest
67+
steps:
68+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
69+
with:
70+
lfs: true
71+
- uses: ./.github/actions/setup-pixi
72+
with:
73+
environment: docs
74+
- name: Build separate SkalaXC guide with the website
75+
run: sphinx-build -W -b html -D nb_execution_mode=off website website/_build/html

‎.gitmodules‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "SkalaXC/external/GauXC"]
2+
path = SkalaXC/external/GauXC
3+
url = https://github.com/wavefunction91/GauXC.git

‎SkalaXC/.clang-format‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# BasedOnStyle: Google
2+
AccessModifierOffset: -1
3+
ConstructorInitializerIndentWidth: 4
4+
AlignEscapedNewlinesLeft: true
5+
AlignTrailingComments: true
6+
AllowAllParametersOfDeclarationOnNextLine: true
7+
AlwaysBreakTemplateDeclarations: true
8+
AlwaysBreakBeforeMultilineStrings: true
9+
AllowShortIfStatementsOnASingleLine: true
10+
AllowShortLoopsOnASingleLine: true
11+
BreakBeforeBinaryOperators: false
12+
BreakBeforeTernaryOperators: true
13+
BreakConstructorInitializersBeforeComma: false
14+
BinPackParameters: true
15+
ColumnLimit: 80
16+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
17+
DerivePointerBinding: true
18+
ExperimentalAutoDetectBinPacking: false
19+
IndentCaseLabels: true
20+
MaxEmptyLinesToKeep: 1
21+
NamespaceIndentation: None
22+
ObjCSpaceBeforeProtocolList: false
23+
PenaltyBreakBeforeFirstCallParameter: 1
24+
PenaltyBreakComment: 60
25+
PenaltyBreakString: 1000
26+
PenaltyBreakFirstLessLess: 120
27+
PenaltyExcessCharacter: 1000000
28+
PenaltyReturnTypeOnItsOwnLine: 200
29+
PointerBindsToType: true
30+
SpacesBeforeTrailingComments: 2
31+
Cpp11BracedListStyle: true
32+
Standard: Auto
33+
IndentWidth: 2
34+
TabWidth: 8
35+
UseTab: Never
36+
BreakBeforeBraces: Attach
37+
IndentFunctionDeclarationAfterType: true
38+
SpacesInParentheses: false
39+
SpacesInAngles: false
40+
SpaceInEmptyParentheses: false
41+
SpacesInCStyleCastParentheses: false
42+
SpaceAfterControlStatementKeyword: true
43+
SpaceBeforeAssignmentOperators: true
44+
ContinuationIndentWidth: 4

‎SkalaXC/.clang-tidy‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Checks: >
2+
-*,
3+
clang-analyzer-*,
4+
bugprone-*,
5+
-bugprone-easily-swappable-parameters,
6+
-bugprone-exception-escape,
7+
-bugprone-forward-declaration-namespace,
8+
-bugprone-implicit-widening-of-multiplication-result,
9+
-bugprone-narrowing-conversions,
10+
performance-*,
11+
-performance-enum-size,
12+
-performance-unnecessary-value-param
13+
WarningsAsErrors: '*'
14+
HeaderFilterRegex: '^(.*[/\\])?SkalaXC/(include|src|tests|examples)/'
15+
FormatStyle: file

‎SkalaXC/.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build/
2+
build-*/
3+
install-*/

0 commit comments

Comments
 (0)