rust_mpi/constants/
mod.rs

1#![allow(dead_code)]
2// These are from MPICH's mpi.h. OpenMPI is different. I'll need to wait for bindgen to work again
3// or write a script that, at compile-time, uses the system's mpi.h to insert these constants since
4// the learning experience of learning the bindings is probably worthwhile given that I am new to
5// Rust.
6// Communicators
7pub static MPI_COMM_WORLD: i32 = 0x44000000;
8pub static MPI_COMM_SELF: i32 = 0x44000001;
9// Error codes
10pub static MPI_SUCCESS: i32 = 0;
11// Data types
12pub static MPI_CHAR :i32 = 0x4c000101;
13pub static MPI_SIGNED_CHAR :i32 = 0x4c000118;
14pub static MPI_UNSIGNED_CHAR :i32 = 0x4c000102;
15pub static MPI_BYTE :i32 = 0x4c00010d;
16pub static MPI_WCHAR :i32 = 0x4c00040e;
17pub static MPI_SHORT :i32 = 0x4c000203;
18pub static MPI_UNSIGNED_SHORT :i32 = 0x4c000204;
19pub static MPI_INT :i32 = 0x4c000405;
20pub static MPI_UNSIGNED :i32 = 0x4c000406;
21pub static MPI_LONG :i32 = 0x4c000807;
22pub static MPI_UNSIGNED_LONG :i32 = 0x4c000808;
23pub static MPI_FLOAT :i32 = 0x4c00040a;
24pub static MPI_DOUBLE :i32 = 0x4c00080b;
25pub static MPI_LONG_DOUBLE :i32 = 0x4c00100c;
26pub static MPI_LONG_LONG_INT :i32 = 0x4c000809;
27pub static MPI_UNSIGNED_LONG_LONG :i32 = 0x4c000819;
28pub static MPI_LONG_LONG: i32 = 0x4c000809;
29// Collective operations
30pub static MPI_MAX :i32 = 0x58000001;
31pub static MPI_MIN :i32 = 0x58000002;
32pub static MPI_SUM :i32 = 0x58000003;
33pub static MPI_PROD :i32 = 0x58000004;
34pub static MPI_LAND :i32 = 0x58000005;
35pub static MPI_BAND :i32 = 0x58000006;
36pub static MPI_LOR :i32 = 0x58000007;
37pub static MPI_BOR :i32 = 0x58000008;
38pub static MPI_LXOR :i32 = 0x58000009;
39pub static MPI_BXOR :i32 = 0x5800000a;
40pub static MPI_MINLOC :i32 = 0x5800000b;
41pub static MPI_MAXLOC :i32 = 0x5800000c;
42pub static MPI_REPLACE :i32 = 0x5800000d;
43pub static MPI_NO_OP :i32 = 0x5800000e;