JuliaSIMD / JuliaSIMD/Polyester.jl

`@batch` with ARM

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

Description

While experimenting with `@batch` on an M1 Macbook, I noticed that there is no performance improvement when using Julia x86 with Rosetta. With the new Julia 1.8.0-rc3 for macOS ARM, however, the same code runs more than 3x faster with `@batch`.
However, when using `@batch` on some loops, I get this error, while it works perfectly fine on other loops:
```
ERROR: cfunction: closures are not supported on this platform
Stacktrace:
[1] macro expansion
@ ~/.julia/packages/Polyester/BI7zH/src/batch.jl:25 [inlined]
[2] batch_closure
@ ~/.julia/packages/Polyester/BI7zH/src/batch.jl:18 [inlined]
[3] macro expansion
@ ~/.julia/packages/Polyester/BI7zH/src/batch.jl:127 [inlined]
[4] _batch_no_reserve
@ ~/.julia/packages/Polyester/BI7zH/src/batch.jl:111 [inlined]
[5] batch
@ ~/.julia/packages/Polyester/BI7zH/src/batch.jl:318 [inlined]
[6] macro expansion
@ ~/.julia/packages/Polyester/BI7zH/src/closure.jl:373 [inlined]
```
Is that fixable in Polyester.jl? Or is there some workaround?

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.