We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9136cb6 commit c9d66e6Copy full SHA for c9d66e6
src/device/utils.jl
@@ -3,7 +3,7 @@
3
# helper type for writing Int32 literals
4
# TODO: upstream this
5
struct Literal{T} end
6
-Base.:(*)(x, ::Type{Literal{T}}) where {T} = T(x)
+Base.:(*)(x::Number, ::Type{Literal{T}}) where {T} = T(x)
7
const i32 = Literal{Int32}
8
9
# local method table for device functions
test/base/aqua.jl
@@ -8,6 +8,7 @@ let ambs = Aqua.detect_ambiguities(CUDA; recursive=true)
# StaticArrays pirates a bunch of Random stuff...
filter!(x -> !pkg_match("StaticArrays", pkgdir(first(x).module)), ambs)
10
11
+ @warn "Remaining ambiguities: $(length(ambs))"
12
@test length(ambs) ≤ 15
13
end
14
0 commit comments