eb-local.mpi¶
- module eb-local.mpi src/mpi.zig[source][autodoc]¶
MPI transport checks for
eb-local doctor --mpi. The overrides are applied only to the hello this module runs. A build does not call this and does not set them.
Types¶
- pub const Transport = enum[source][autodoc]¶
A site-approved transport.
ofiuses the Open MPI cm/ofi pair.ucxuses the ucx point-to-point layer and turns ofi off.
Functions¶
- pub fn parseTransport(name: []const u8) ?Transport[source][autodoc]¶
ofiorucx, the only transports a site file may name.
- pub fn overrideText(transport: Transport) []const u8[source][autodoc]¶
The two variables set on the hello, and nowhere else.
- pub fn summarize(a: Allocator, exe: ?[]const u8, argv: []const []const u8, envp: proc.Envp) Summary[source][autodoc]¶
The first non-empty line of
argv, at most 160 bytes.
- pub fn runHello( a: Allocator, transport: Transport, mpicc: ?[]const u8, mpirun: ?[]const u8, work: []const u8, base: *const std.process.Environ.Map, base_envp: proc.Envp) Allocator.Error!Hello[source][autodoc]¶
Compile
work/hello.cwithmpiccand run it withmpirun -np 2. The two Open MPI variables are added to a copy ofbasefor that run.
- pub fn parseRanks(a: Allocator, text: []const u8) Allocator.Error![]const Rank[source][autodoc]¶
Ranks from lines
hello rank=R size=S cpu=C cpus=N.
True when every reported rank ran on one CPU.