Skip to content

Commit b1fc438

Browse files
Merge pull request #658 from SciML/depwarn
Depwarn
2 parents 1a0ddca + 22c090c commit b1fc438

File tree

5 files changed

+34
-12
lines changed

5 files changed

+34
-12
lines changed

.buildkite/pipeline.yml

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
steps:
2-
- label: "Julia 1"
2+
- label: "GPU"
33
plugins:
44
- JuliaCI/julia#v1:
55
version: "1"
@@ -8,11 +8,36 @@ steps:
88
agents:
99
queue: "juliagpu"
1010
cuda: "*"
11+
env:
12+
GROUP: 'GPU'
13+
JULIA_PKG_SERVER: "" # it often struggles with our large artifacts
14+
# SECRET_CODECOV_TOKEN: "..."
1115
timeout_in_minutes: 240
1216
# Don't run Buildkite if the commit message includes the text [skip tests]
1317
if: build.message !~ /\[skip tests\]/
1418

15-
env:
16-
GROUP: GPU
17-
JULIA_PKG_SERVER: "" # it often struggles with our large artifacts
18-
# SECRET_CODECOV_TOKEN: "..."
19+
- label: "{{matrix.group}} v{{matrix.version}}"
20+
matrix:
21+
setup:
22+
version:
23+
- "1.6"
24+
- "1"
25+
group:
26+
- "NNODE"
27+
- "NeuralAdapter"
28+
- "IntegroDiff"
29+
env:
30+
BUILDKITE_PLUGIN_JULIA_VERSION: "{{matrix.version}}"
31+
GROUP: "{{matrix.group}}"
32+
plugins:
33+
- JuliaCI/julia#v1
34+
- JuliaCI/julia-test#v1:
35+
coverage: false
36+
julia_args: "--threads=auto"
37+
agents:
38+
os: "linux"
39+
queue: "juliaecosystem"
40+
arch: "x86_64"
41+
timeout_in_minutes: 680
42+
# Don't run Buildkite if the commit message includes the text [skip tests]
43+
if: build.message !~ /\[skip tests\]/

.github/workflows/CI.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
group:
16-
- NNODE
1716
- NNPDE1
1817
- NNPDE2
1918
- AdaptiveLoss
20-
- NeuralAdapter
21-
- IntegroDiff
2219
- Logging
2320
- Forward
2421
version:

src/NeuralPDE.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ import ModelingToolkit: value, nameof, toexpr, build_expr, expand_derivatives
2424
import DomainSets: Domain, ClosedInterval
2525
import ModelingToolkit: Interval, infimum, supremum #,Ball
2626
import SciMLBase: @add_kwonly, parameterless_type
27-
using Flux: @nograd
2827
import Optimisers
2928
import UnPack: @unpack
3029
import RecursiveArrayTools
3130
import ChainRulesCore, Flux, Lux, ComponentArrays
31+
import ChainRulesCore: @non_differentiable
3232

3333
RuntimeGeneratedFunctions.init(@__MODULE__)
3434

src/ode_solve.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ function DiffEqBase.__solve(prob::DiffEqBase.AbstractODEProblem,
413413
k = res, dense = true,
414414
interp = NNODEInterpolation(phi, res.u),
415415
calculate_error = false,
416-
retcode = :Success)
416+
retcode = ReturnCode.Success)
417417
DiffEqBase.has_analytic(prob.f) &&
418418
DiffEqBase.calculate_solution_errors!(sol; timeseries_errors = true,
419419
dense_errors = false)

src/training_strategies.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function StochasticTraining(points; bcs_points = points)
7171
StochasticTraining(points, bcs_points)
7272
end
7373

74-
@nograd function generate_random_points(points, bound, eltypeθ)
74+
function generate_random_points(points, bound, eltypeθ)
7575
lb, ub = bound
7676
rand(eltypeθ, length(lb), points) .* (ub .- lb) .+ lb
7777
end
@@ -150,7 +150,7 @@ function QuasiRandomTraining(points; bcs_points = points,
150150
QuasiRandomTraining(points, bcs_points, sampling_alg, resampling, minibatch)
151151
end
152152

153-
@nograd function generate_quasi_random_points_batch(points, bound, eltypeθ, sampling_alg,
153+
function generate_quasi_random_points_batch(points, bound, eltypeθ, sampling_alg,
154154
minibatch)
155155
lb, ub = bound
156156
set = QuasiMonteCarlo.generate_design_matrices(points, lb, ub, sampling_alg, minibatch)

0 commit comments

Comments
 (0)