JuliaSIMD / JuliaSIMD/LoopVectorization.jl

LoadError on simple example

Offen
#331 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Julia
Sterne
789
Forks
73
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I'm struggling to understand why this function won't load:

```
using LoopVectorization
function f(X::Matrix{Float64})
retval = [1]
@turbo for i ∈ eachindex(X)
retval[1] += X[i]
end
end
```

When I try to execute this code in Julia 1.6.2--not execute the f() function--I get:
```
ERROR: LoadError: LoadError: KeyError: key Symbol("###RHS###5###") not found
Stacktrace:
[1] getindex
@ .\dict.jl:482 [inlined]
[2] add_reduction!(ls::LoopVectorization.LoopSet, var::Symbol, reduceddeps::Vector{Symbol}, deps::Vector{Symbol}, vparents::Vector{LoopVectorization.Operation}, reduction_ind::Int64, elementbytes::Int64, instr::LoopVectorization.Instruction)
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.