cuDDL
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
cuddl::genome_slice Struct Reference

One rank's share of a genome collection split across an MPI communicator. More...

Public Member Functions

std::span< std::filesystem::path const > mine () const noexcept
 

Public Attributes

std::vector< std::filesystem::path > paths
 Every genome of the collection in reference-ID order; the same on every rank.
 
std::vector< uint64_t > bytes
 Size of each genome's file in bytes.
 
size_t first = 0
 This rank's genomes are paths[first, last).
 
size_t last = 0
 

Detailed Description

One rank's share of a genome collection split across an MPI communicator.

Definition at line 49 of file distributed.cuh.

Member Function Documentation

◆ mine()

std::span< std::filesystem::path const > cuddl::genome_slice::mine ( ) const
inlinenoexcept

Definition at line 58 of file distributed.cuh.

58 {
59 return std::span{paths}.subspan(first, last - first);
60 }
std::vector< std::filesystem::path > paths
Every genome of the collection in reference-ID order; the same on every rank.
size_t first
This rank's genomes are paths[first, last).

Member Data Documentation

◆ bytes

std::vector<uint64_t> cuddl::genome_slice::bytes

Size of each genome's file in bytes.

Definition at line 53 of file distributed.cuh.

◆ first

size_t cuddl::genome_slice::first = 0

This rank's genomes are paths[first, last).

Definition at line 55 of file distributed.cuh.

◆ last

size_t cuddl::genome_slice::last = 0

Definition at line 56 of file distributed.cuh.

◆ paths

std::vector<std::filesystem::path> cuddl::genome_slice::paths

Every genome of the collection in reference-ID order; the same on every rank.

Definition at line 51 of file distributed.cuh.


The documentation for this struct was generated from the following file: