Skip to content

use Requires to suppress Cassette overwrite warnings #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2019
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
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ DiffEqDiffTools = "01453d9d-ee7c-5054-8395-0335cb756afa"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
LightGraphs = "093fc24a-ae57-5d10-9952-331d41423f4d"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
Expand Down
21 changes: 13 additions & 8 deletions src/SparseDiffTools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ using SparseArrays, LinearAlgebra, BandedMatrices, BlockBandedMatrices,
using BlockBandedMatrices:blocksize,nblocks
using ForwardDiff: Dual, jacobian, partials, DEFAULT_CHUNK_THRESHOLD

using Requires
using Cassette
import Cassette: tag, untag, Tagged, metadata, hasmetadata, istagged, canrecurse
import Cassette: tagged_new_tuple, ContextTagged, BindingMeta, DisableHooks, nametype
Expand Down Expand Up @@ -40,13 +41,17 @@ include("coloring/greedy_star2_coloring.jl")
include("coloring/matrix2graph.jl")
include("differentiation/compute_jacobian_ad.jl")
include("differentiation/jaches_products.jl")
include("program_sparsity/program_sparsity.jl")
include("program_sparsity/sparsity_tracker.jl")
include("program_sparsity/path.jl")
include("program_sparsity/take_all_branches.jl")
include("program_sparsity/terms.jl")
include("program_sparsity/linearity.jl")
include("program_sparsity/hessian.jl")
include("program_sparsity/blas.jl")
function __init__()
@require Cassette="7057c7e9-c182-5462-911a-8362d720325c" begin
include("program_sparsity/program_sparsity.jl")
include("program_sparsity/sparsity_tracker.jl")
include("program_sparsity/path.jl")
include("program_sparsity/take_all_branches.jl")
include("program_sparsity/terms.jl")
include("program_sparsity/linearity.jl")
include("program_sparsity/hessian.jl")
include("program_sparsity/blas.jl")
end
end

end # module