JuliaSIMD / JuliaSIMD/LoopVectorization.jl

is it possible to set @turbo thread = true/false at runtime?

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

Descrizione

I have a function that uses @turbo and has a threaded kwarg

```julia
function f(a, b; threaded = true)
c = similar(a)
@turbo thread = true for i = eachindex(a)
c[i] = a[i]+b[i]
end
end
```

is it possible to pass the function kwarg `threaded` to `@turbo` to set `thread ` ?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start by examining the @turbo macro entry point and how it handles the thread=true option in the shown function f. Determine whether the threaded keyword can control that option at runtime, and document or implement the supported behavior with a focused test if the repository provides one.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
julia
Ambito
performance
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.