public NetworkConfig(int numMachines, int rank, ReduceScatterFunction reduce, AllGatherFunction gather) { if (numMachines < 1) { throw new ArgumentOutOfRangeException("numMachines"); } PInvokeException.Check(PInvoke.NetworkInitWithFunctions(numMachines, rank, reduce, gather), nameof(PInvoke.NetworkInitWithFunctions)); }
public static extern int NetworkInitWithFunctions(int numMachines, int rank, ReduceScatterFunction reduceScatterFuncPtr, AllgatherFunction allgatherFuncPtr);