Skip to content

Commit

Permalink
release 0.9
Browse files Browse the repository at this point in the history
Co-authored-by: Deborah Kornwolf <[email protected]>
  • Loading branch information
LukasRuppert and XDeboratti committed Jan 22, 2025
1 parent 51f3056 commit 508279e
Show file tree
Hide file tree
Showing 132 changed files with 10,101 additions and 9,908 deletions.
14 changes: 12 additions & 2 deletions .clang-format
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

30 changes: 30 additions & 0 deletions .clangd
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/.*
11 changes: 11 additions & 0 deletions .editorconfig
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
55 changes: 55 additions & 0 deletions .github/workflows/ci.yaml
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 .
53 changes: 7 additions & 46 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
3rdparty/
build/
build_11/
build_docker/
build_local/
build*/
.vscode
data/**
evaluation/
.idea/

include/ggnn/alternatives
run_Project.txt

.cache
.py-build-cmake_cache

### CMake ###
CMakeLists.txt.user
Expand All @@ -21,43 +22,3 @@ compile_commands.json
CTestTestfile.cmake
_deps

### CMake Patch ###
# External projects
*-prefix/

### C++ ###
# Prerequisites
*.d

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app


cmake-build-debug
9 changes: 0 additions & 9 deletions .gitmodules

This file was deleted.

22 changes: 22 additions & 0 deletions .readthedocs.yaml
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:
- pdf
- epub
1 change: 0 additions & 1 deletion 3rdparty/cub
Submodule cub deleted from c3ccea
1 change: 0 additions & 1 deletion 3rdparty/glog
Submodule glog deleted from 0a2e59
1 change: 0 additions & 1 deletion 3rdparty/pybind11
Submodule pybind11 deleted from b88636
Loading

0 comments on commit 508279e

Please sign in to comment.