JuliaSIMD / JuliaSIMD/LoopVectorization.jl

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

Open
#499 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
789
Forks
73
PR merge metrics
No merged PRs in 30d

Description

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 ` ?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.