JuliaSIMD / JuliaSIMD/Polyester.jl

UndefVarError: not defined

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

Description

This code will result an error `LoadError: UndefVarError: a#259 not defined`.
```julia
using Polyester
function test()
a = zeros(3)
@batch for i in 1:3
if false
a = zeros(3)
end
a[i] = 1.0
end
end
test()
```
But it will be OK when I use Threads.@threads. Is it a bug?

Thank you very much.

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.