Skip to content

Commit

Permalink
Use corresponding aliases for C types in OpenMPI ABI file (JuliaParal…
Browse files Browse the repository at this point in the history
…lel#606)

* Use corresponding aliases for C types in OpenMPI ABI file
* Use `Int` for `MPI_Count`, `MPI_Offset` to hopefully fix issues on 32-bit systems
  • Loading branch information
sloede authored May 30, 2022
1 parent aab9295 commit 18fa6ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/consts/openmpi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ const MPI_MAX_PROCESSOR_NAME = Cint(256)
# Types

# Various (signed) integer types:
const MPI_Aint = Int
const MPI_Fint = Int32
const MPI_Count = Int
const MPI_Offset = Int
const MPI_Aint = Cptrdiff_t
const MPI_Fint = Cint
const MPI_Count = Int # needs to be Int to match different sizes on 32-bit/64-bit systems
const MPI_Offset = Int # needs to be Int to match different sizes on 32-bit/64-bit systems

# Status:
struct MPI_Status
Expand Down

0 comments on commit 18fa6ea

Please sign in to comment.