Skip to content
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

Ensure attributor is not run #17

Merged
merged 1 commit into from
Jun 11, 2024
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
4 changes: 0 additions & 4 deletions examples/sensitivity_PIG.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using Enzyme
Enzyme.API.typeWarning!(false)
Enzyme.Compiler.RunAttributor[] = false

using DJUICE
using MAT

Expand Down
6 changes: 6 additions & 0 deletions src/DJUICE.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ module DJUICE
const userdir = "./usr"
const coredir = "./core"

using Enzyme

function __init__()
Enzyme.Compiler.RunAttributor[] = false
end

include("$userdir/classes.jl")
export model, WeertmanFriction, SchoofFriction, DNNFriction
include("$userdir/exp.jl")
Expand Down
2 changes: 0 additions & 2 deletions src/core/control.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Enzyme
Enzyme.API.typeWarning!(false)
Enzyme.Compiler.RunAttributor[] = false

#using Optimization, OptimizationOptimJL

Expand Down
2 changes: 0 additions & 2 deletions test/testad.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Enzyme
Enzyme.API.typeWarning!(false)
Enzyme.Compiler.RunAttributor[] = false

using DJUICE
using MAT
Expand Down
3 changes: 0 additions & 3 deletions test/testad2.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using Enzyme

Enzyme.API.typeWarning!(false)
Enzyme.Compiler.RunAttributor[] = false

using DJUICE
using MAT
using Test
Expand Down
1 change: 0 additions & 1 deletion test/testoptimization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ using MAT
using Test
using Enzyme

Enzyme.Compiler.RunAttributor[] = false
using Optimization, OptimizationOptimJL

#Load model from MATLAB file
Expand Down
Loading