Skip to content

@batch with ARM #88

@efaulhaber

Description

@efaulhaber

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions