|
cuDDL
|
#include <fastx_sequence_file.hpp>
Public Member Functions | |
| fastx_load_pool (std::span< std::filesystem::path const > paths, size_t workers, decompression_source source={}, size_t window=0, bool defer_fasta=false, bool completion_order=false, uint32_t pack_k=0) | |
| ~fastx_load_pool () | |
| fastx_load_pool (fastx_load_pool const &)=delete | |
| fastx_load_pool & | operator= (fastx_load_pool const &)=delete |
| Result< std::unique_ptr< fastx_sequence_file > > | take (size_t id) |
| Result< std::pair< size_t, std::unique_ptr< fastx_sequence_file > > > | take_ready () |
| Result< std::optional< std::pair< size_t, std::unique_ptr< fastx_sequence_file > > > > | take_ready_until_limit () |
| take_ready, or nothing once every id below the cap limit is taken. | |
| size_t | ready () |
| Completion-order results waiting to be taken. | |
| size_t | cap (size_t limit) |
Stops the loaders before id limit, or after the ids they already claimed. | |
Definition at line 1796 of file fastx_sequence_file.hpp.
|
inline |
| paths | Files the pool loads in order. |
| workers | Loader threads. |
| source | Decompression buffer source; the default detects gzip by magic bytes. |
| window | Files the loaders may hold ahead of the consumer, at least one per worker. With ordered collection, the window hides a slow file: with a window of one worker-worth there is no slack, and the consumer waits on the straggler while the other loaders sit idle. |
| defer_fasta | Leave eligible FASTA bytes for a GPU normaliser. |
| completion_order | Collect through take_ready instead of take(id). |
| pack_k | Nonzero packs each loaded file into two-bit runs for k-mers this long. |
Definition at line 1808 of file fastx_sequence_file.hpp.
|
inline |
Definition at line 1840 of file fastx_sequence_file.hpp.
|
delete |
|
inline |
Stops the loaders before id limit, or after the ids they already claimed.
A second consumer can own the ids past the returned limit without racing the loaders.
Definition at line 1910 of file fastx_sequence_file.hpp.
|
delete |
|
inline |
Completion-order results waiting to be taken.
Definition at line 1901 of file fastx_sequence_file.hpp.
|
inline |
Definition at line 1862 of file fastx_sequence_file.hpp.
|
inline |
Definition at line 1874 of file fastx_sequence_file.hpp.
|
inline |
take_ready, or nothing once every id below the cap limit is taken.
Definition at line 1891 of file fastx_sequence_file.hpp.