Skip to content
Closed
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
57 changes: 0 additions & 57 deletions .github/workflows/Documentation.yml

This file was deleted.

79 changes: 1 addition & 78 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,14 @@ jobs:
actions: write
contents: read
strategy:
fail-fast: true # TODO: toggle
fail-fast: false # TODO: toggle
matrix:
version:
- '1.10'
- '1.11'
- '1.12'
group:
- Core/Internals
- Back/DifferentiateWith
- Core/SimpleFiniteDiff
- Back/SparsityDetector
- Core/ZeroBackends
- Back/ChainRules
# - Back/Diffractor
- Back/Enzyme
- Back/FastDifferentiation
- Back/FiniteDiff
- Back/FiniteDifferences
- Back/ForwardDiff
- Back/GTPSA
- Back/Mooncake
- Back/PolyesterForwardDiff
- Back/ReverseDiff
- Back/Symbolics
- Back/Tracker
- Back/Zygote
skip_lts:
- ${{ github.event.pull_request.draft }}
skip_pre:
Expand Down Expand Up @@ -103,62 +85,3 @@ jobs:
flags: DI
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false

test-DIT:
name: ${{ matrix.version }} - DIT (${{ matrix.group }})
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skipci') }}
timeout-minutes: 60
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
actions: write
contents: read
strategy:
fail-fast: true
matrix:
version:
- '1.10'
- '1.11'
- '1.12'
group:
- Formalities
- Zero
- Standard
- Weird
skip_lts:
- ${{ github.event.pull_request.draft }}
skip_pre:
- ${{ github.event.pull_request.draft }}
exclude:
- skip_lts: true
version: '1.10'
- skip_pre: true
version: '1.12'
env:
JULIA_DIT_TEST_GROUP: ${{ matrix.group }}
JULIA_DI_PR_DRAFT: ${{ github.event.pull_request.draft }}
steps:
- uses: actions/checkout@v5
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: x64
- uses: julia-actions/cache@v2
- name: Install dependencies & run tests
run: julia --project=./DifferentiationInterfaceTest --color=yes -e '
using Pkg;
Pkg.Registry.update();
Pkg.develop(path="./DifferentiationInterface");
if ENV["JULIA_DI_PR_DRAFT"] == "true";
Pkg.test("DifferentiationInterfaceTest"; allow_reresolve=false, coverage=true, julia_args=["-O1"]);
else;
Pkg.test("DifferentiationInterfaceTest"; allow_reresolve=false, coverage=true);
end;'
- uses: julia-actions/julia-processcoverage@v1
with:
directories: ./DifferentiationInterfaceTest/src,./DifferentiationInterfaceTest/ext,./DifferentiationInterfaceTest/test
- uses: codecov/codecov-action@v5
with:
files: lcov.info
flags: DIT
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
14 changes: 14 additions & 0 deletions DifferentiationInterface/test/Back/ForwardDiff/benchmark.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@ using Test

LOGGING = get(ENV, "CI", "false") == "false"

@info "Printing allocs"
const f! = DIT.diffsquare!
x, y = rand(10), zeros(9);
backend = MyAutoSparse(AutoForwardDiff());
prep = prepare_jacobian(f!, y, backend, x);
J = similar(sparsity_pattern(prep), Float64)
jacobian!(f!, y, J, prep, backend, x)

Profile.Allocs.clear()
Profile.Allocs.@profile sample_rate = 1 jacobian!(f!, y, J, prep, backend, x)
Profile.Allocs.print()

@info "Printing allocs done"

@testset verbose = true "Benchmarking static" begin
filtered_static_scenarios = filter(static_scenarios(; include_batchified = false)) do scen
DIT.function_place(scen) == :out && DIT.operator_place(scen) == :out
Expand Down
126 changes: 0 additions & 126 deletions DifferentiationInterface/test/Back/ForwardDiff/test.jl

This file was deleted.

Loading