-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Deborah Kornwolf <[email protected]>
- Loading branch information
1 parent
51f3056
commit 508279e
Showing
132 changed files
with
10,101 additions
and
9,908 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 |
---|---|---|
@@ -1,5 +1,15 @@ | ||
--- | ||
Language: Cpp | ||
BasedOnStyle: Google | ||
Language: Cpp | ||
BasedOnStyle: Google | ||
DerivePointerAlignment: false | ||
PointerAlignment: Left | ||
ColumnLimit: 100 | ||
IncludeBlocks: Preserve | ||
AllowShortIfStatementsOnASingleLine: Never | ||
AllowShortLoopsOnASingleLine: False | ||
AllowShortBlocksOnASingleLine: Empty | ||
BreakBeforeBraces: Stroustrup | ||
AllowShortEnumsOnASingleLine: False | ||
AllowShortFunctionsOnASingleLine: Empty | ||
AllowShortCaseLabelsOnASingleLine: False | ||
|
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,30 @@ | ||
CompileFlags: | ||
Add: | ||
- -Wall | ||
- -Wextra | ||
# do not complain about features incompatible with sm_35 | ||
- --cuda-gpu-arch=sm_52 | ||
Remove: | ||
- --expt-relaxed-constexpr | ||
- --default-stream | ||
- --generate-code=* | ||
- --options-file | ||
- -arch=* | ||
- -forward-unknown-to-host-compiler | ||
- -Xptxas=* | ||
- -Xcompiler=* | ||
|
||
Diagnostics: | ||
ClangTidy: | ||
Add: | ||
- bugprone-* | ||
- performance-* | ||
Remove: | ||
- bugprone-macro-parentheses | ||
UnusedIncludes: Strict | ||
MissingIncludes: Strict | ||
Includes: | ||
IgnoreHeader: | ||
- cub/.* | ||
- cuda/.* | ||
- glog/.* |
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,11 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 |
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,55 @@ | ||
name: Compile | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- release* | ||
|
||
concurrency: | ||
group: compile-${{ github.ref }} | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
# Test the build with the latest CUDA toolkit and several Python versions | ||
nvcc-ubuntu: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
#python: ['3.8', '3.9', '3.10', '3.11', '3.12'] | ||
python: ['3.12'] | ||
|
||
name: "Python ${{ matrix.python }} / NVCC (CUDA 12.6.3) / ubuntu-latest" | ||
runs-on: ubuntu-latest | ||
# see https://hub.docker.com/r/nvidia/cuda | ||
container: nvidia/cuda:12.6.3-devel-ubuntu24.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -y lsb-release unzip git && apt-get clean all | ||
|
||
- name: Setup Python ${{ matrix.python }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Install the latest CMake | ||
uses: lukka/get-cmake@latest | ||
|
||
- name: Install Nanobind | ||
run: | | ||
python -m pip install nanobind typing_extensions | ||
- name: Configure | ||
run: > | ||
cmake -S . -B build | ||
- name: Build C++ | ||
run: cmake --build build -j 2 | ||
|
||
- name: Build Wheel | ||
run: python -m pip wheel . |
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 was deleted.
Oops, something went wrong.
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,22 @@ | ||
version: "2" | ||
|
||
build: | ||
os: "ubuntu-22.04" | ||
tools: | ||
python: "3.10" | ||
|
||
python: | ||
install: | ||
- requirements: docs/requirements.txt | ||
# Install our python package before building the docs | ||
- method: pip | ||
path: . | ||
|
||
sphinx: | ||
configuration: docs/source/conf.py | ||
fail_on_warning: true | ||
|
||
|
||
formats: | ||
- epub |
Submodule cub
deleted from
c3ccea
Submodule glog
deleted from
0a2e59
Submodule pybind11
deleted from
b88636
Oops, something went wrong.