JuliaParallel / JuliaParallel/MPI.jl

`MPI.REQUEST_NULL` only pretends to be a constant

Open
#921 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
439
Forks
127
Avg merge
19h 6m
Merged PRs (30d)
17

Description

```
using MPI
MPI.Init()

reqs = Vector{MPI.Request}(undef, 2)
fill!(reqs, MPI.REQUEST_NULL)

# first foot-gun `reqs[1]` and `reqs[2]` are now aliases

MPI.Irecv!(Ref(1.0), MPI.COMM_WORLD, reqs[1])
```

```
julia> reqs
2-element Vector{MPI.Request}:
incomplete request
incomplete request
```

But worse...

```
julia> MPI.REQUEST_NULL
MPI.Request: incomplete request
```

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.