JuliaSIMD / JuliaSIMD/LoopVectorization.jl

Doesn't seem to handle Bool negation well

Aperta
#99 3 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
Julia
Stelle
789
Fork
73
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi, just trying `@avx` for the first time on a simple loop that includes the negation of a boolean:
```
julia> xs = rand(10)

julia> function foo(x)
count = 0
@avx for i in eachindex(x)
count += !isnan(x[i])
end
count
end
foo (generic function with 1 method)

julia> foo(xs)
ERROR: MethodError: no method matching !(::UInt8)
Closest candidates are:
!(::Missing) at missing.jl:100
!(::Bool) at bool.jl:35
!(::Function) at operators.jl:880
...

```
Is that expected?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.