JuliaSIMD / JuliaSIMD/LoopVectorization.jl
impl missing for complex broadcast?
- Lingua principale
- Julia
- Stelle
- 789
- Fork
- 73
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
The code below works for real types and fails for complex types. Am I missing something or should this work?
```
using LoopVectorization
function testturbo(T)
@show T
n1,n2 = 100,200
x = zeros(T,n1)
y = rand(T,n1,n2)
for k2 ∈ 1:n2
@turbo x[:] .+= y[:,k2]
end
nothing
end
testturbo(Float32)
testturbo(Float64)
testturbo(Complex{Float32})
testturbo(Complex{Float64})
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start by running the testturbo reproducer and compare the real-type and complex-type results. Trace the @turbo broadcast path used by x[:] .+= y[:,k2]. Done means the complex Float32 and Complex{Float64} cases work consistently with the real cases, with coverage for the reported examples.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- julia
- Ambito
- performance
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100