Skip to content

Commit f2c5381

Browse files
authored
Merge branch 'main' into wsmoses-patch-6
2 parents baa7e7c + 66aafd4 commit f2c5381

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Enzyme"
22
uuid = "7da242da-08ed-463a-9acd-ee780be4f1d9"
33
authors = ["William Moses <wmoses@mit.edu>", "Valentin Churavy <vchuravy@mit.edu>"]
4-
version = "0.13.119"
4+
version = "0.13.120"
55

66
[deps]
77
CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82"

src/rules/customrules.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,13 +406,15 @@ function enzyme_custom_setup_args(
406406
end
407407

408408
if activep == API.DFT_CONSTANT && !any_active
409-
@assert roots_activep == API.DFT_DUP_ARG
409+
if roots_activep != API.DFT_DUP_ARG
410+
throw(AssertionError("v1 roots_activep ($roots_activep) != activep ($activep) arg.typ=$(arg.typ) equivalent_rooted_type=$(equivalent_rooted_type(arg.typ)) non_rooted_types=$(non_rooted_types(arg.typ))"))
411+
end
410412
activep = roots_activep
411413
any_active_data = false
412414
end
413415

414416
if roots_activep != activep
415-
throw("roots_activep ($roots_activep) != activep ($activep) arg.typ=$(arg.typ) equivalent_rooted_type=$(equivalent_rooted_type(arg.typ)) non_rooted_types=$(non_rooted_types(arg.typ))")
417+
throw(AssertionError("roots_activep ($roots_activep) != activep ($activep) arg.typ=$(arg.typ) equivalent_rooted_type=$(equivalent_rooted_type(arg.typ)) non_rooted_types=$(non_rooted_types(arg.typ))"))
416418
end
417419
end
418420

0 commit comments

Comments
 (0)