JuliaParallel / JuliaParallel/MPI.jl

Avoid closures for custom operators

Open
#404 8 comments 0 reactions 0 assignees View on GitHub
aarch64 Spectrum MPI
Dominant language
Julia
Stars
439
Forks
127
Avg merge
19h 6m
Merged PRs (30d)
17

Description

To support custom operators for PowerPC and ARM, we will need to avoid using closures as these are not supported (https://github.com/JuliaLang/julia/pull/34326 and https://github.com/JuliaLang/julia/issues/32154). There might be performance advantages on other platforms as well.

We currently skip the relevant tests on these platforms (#353)

Some options:
- convert `Op(f, T=Any)` to a generated function
- write a macro that allows us to "declare" custom operator/type combinations, i.e.
```julia
@Op f T
```
would define a non-closure `cfunction` for `Op(::typeof(f),::Type{T})`

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.