JuliaSIMD / JuliaSIMD/LoopVectorization.jl
Cannot vectorize a loop with inner hidden loop (findfirst)
Aperta
- Lingua principale
- Julia
- Stelle
- 789
- Fork
- 73
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I have a simple algorithm that I want to vectorize. Works with `@simd` but for `@avx` throws an error that x is not defined.
```julia
function check_simd(regex_list, input)
input_len=length(input)
icon_indices = Vector{Int64}(undef, input_len)
@avx for j=1:input_len
icon_indices[j] = findfirst(x-> match(x, input[j]) !== nothing, regex_list)
end
return icon_indices
end
```
MWE here: https://gist.github.com/aminya/4b6e6db1147e63727cffc781633a8e0b
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.