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 5ce89c3 commit df08dd5Copy full SHA for df08dd5
src/device/quirks.jl
@@ -36,3 +36,13 @@ end
36
# trig.jl
37
@device_override @noinline Base.Math.sincos_domain_error(x) =
38
@print_and_throw "sincos(x) is only defined for finite x."
39
+
40
+# multidimensional.jl
41
+if VERSION >= v"1.7-"
42
+ # XXX: the boundscheck change in JuliaLang/julia#42119 has exposed additional issues
43
+ # with bad code generation by ptxas, so revert that changen for now.
44
+ @device_override Base.@propagate_inbounds function Base.getindex(iter::CartesianIndices{N,R},
45
+ I::Vararg{Int, N}) where {N,R}
46
+ CartesianIndex(getindex.(iter.indices, I))
47
+ end
48
+end
0 commit comments