Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install BLAS (Ubuntu)
if: runner.os == 'Linux'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/conda-forge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:

steps:
- uses: actions/checkout@v5
with:
submodules: recursive

- uses: conda-incubator/setup-miniconda@v3
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:

steps:
- uses: actions/checkout@v5
with:
submodules: recursive

- name: Install clang-format
run: brew install clang-format || true
Expand All @@ -25,7 +27,7 @@ jobs:
# the *.h branch and .c files are never checked.
- name: Check C formatting
run: |
misformatted=$(find . \( -name '*.c' -o -name '*.h' \) -print0 | xargs -0 clang-format -style=file -output-replacements-xml | grep "<replacement " || true)
misformatted=$(find . -path ./sparsediff_linalg -prune -o \( -name '*.c' -o -name '*.h' \) -print0 | xargs -0 clang-format -style=file -output-replacements-xml | grep "<replacement " || true)
if [ -n "$misformatted" ]; then
echo "ERROR: Some files are not properly formatted. Run clang-format -i."
exit 1
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/guard-malloc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:

steps:
- uses: actions/checkout@v5
with:
submodules: recursive

- name: Configure
run: cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install BLAS (Ubuntu)
if: runner.os == 'Linux'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/sanitizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:

steps:
- uses: actions/checkout@v5
with:
submodules: recursive

- name: Install BLAS (Ubuntu)
if: runner.os == 'Linux'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/valgrind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install dependencies
run: |
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "sparsediff_linalg"]
path = sparsediff_linalg
url = https://github.com/SparseDifferentiation/sparsediff_linalg
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ else()
enable_testing()
endif()
set(SPARSEDIFF_LINALG_WARNINGS_AS_ERRORS ${SDE_WARNINGS_AS_ERRORS})
# The library is a git submodule (https://github.com/SparseDifferentiation/sparsediff_linalg),
# so a plain clone leaves the directory empty.
if(NOT EXISTS "${PROJECT_SOURCE_DIR}/sparsediff_linalg/CMakeLists.txt")
message(FATAL_ERROR
"sparsediff_linalg/ is empty: the sparsediff_linalg submodule is not checked "
"out. Run\n git submodule update --init --recursive\n"
"or clone with --recurse-submodules.")
endif()
add_subdirectory(sparsediff_linalg)

add_compile_definitions(DIFF_ENGINE_VERSION="${DIFF_ENGINE_VERSION}")
Expand Down
1 change: 1 addition & 0 deletions sparsediff_linalg
Submodule sparsediff_linalg added at 45dcbf
193 changes: 0 additions & 193 deletions sparsediff_linalg/CMakeLists.txt

This file was deleted.

59 changes: 0 additions & 59 deletions sparsediff_linalg/include/sparsediff_linalg/COO_matrix.h

This file was deleted.

Loading
Loading