JuliaSIMD / JuliaSIMD/Polyester.jl
Disable polyester threads if in an outer @batch loop
Open
- Dominant language
- Julia
- Stars
- 285
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
The readme gives this example, which works great:
```
disable_polyester_threads() do
@threads for i in 1:n
f()
end
end
```
For my use case, I would like to disable an inner `@batch` in `f()` if the outer loop uses `@batch`. Eg,:
```
disable_polyester_threads() do
@batch for i in 1:n
f()
end
end
```
Is there an easy way to do this? Thanks.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.