Function netuit::GenerateMetisAssignmentFunctors

Function Documentation

std::pair<std::function<uitsl::proc_id_t(size_t)>, std::function<uitsl::thread_id_t(size_t)>> netuit::GenerateMetisAssignmentFunctors(const size_t num_procs, const size_t threads_per_proc, const netuit::Topology &topology)

This function returns a pair of functors determining thread and process assignments, from a (hopefully optimal) k-way partitioning as returned by METIS.

Return

std::pair of process and thread assignments. *

Parameters
  • [in] num_procs: Number of processes.

  • [in] threads_per_proc: Number of threads per process.

  • [in] topology: Topology to partition.