Skip to content
Open
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
7 changes: 6 additions & 1 deletion ext/EnzymeCore07Ext.jl
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,12 @@ function EnzymeRules.augmented_primal(
Base.@_inline_meta
if args[i] isa Active
if func.val isa Kernel{<:GPU}
error("Active kernel arguments not supported on GPU")
error("""
Active kernel arguments not supported on GPU, got
\n$(typeof(args[i]))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the extra \n ?

"""
Active kernel arguments not supported on GPU, got

$(typeof(args[i]))
""""

\nFor argument $i of kernel
\n$(func.val).
""")
else
Ref(EnzymeCore.make_zero(args[i].val))
end
Expand Down
7 changes: 6 additions & 1 deletion ext/EnzymeCore08Ext.jl
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,12 @@ function EnzymeRules.augmented_primal(
Base.@_inline_meta
if args[i] isa Active
if func.val isa Kernel{<:GPU}
error("Active kernel arguments not supported on GPU")
error("""
Active kernel arguments not supported on GPU, got
\n$(typeof(args[i]))
\nFor argument $i of kernel
\n$(func.val).
""")
else
Ref(EnzymeCore.make_zero(args[i].val))
end
Expand Down