cuSBF
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
fastx_host_memory.cuh File Reference
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <filesystem>
#include <string>
#include <string_view>
#include <cusbf/detail/host_parse.hpp>

Go to the source code of this file.

Namespaces

namespace  cusbf
 
namespace  cusbf::detail
 

Functions

size_t cusbf::detail::fastx_host_ram_slack_bytes ()
 
size_t cusbf::detail::query_available_host_bytes ()
 Available physical RAM (bytes) for mmap budgeting.
 
uint64_t cusbf::detail::fastx_memory_map_max_bytes ()
 Upper bound on file bytes that may be mmap'd (env cap and available RAM minus slack).
 
bool cusbf::detail::fastx_file_fits_in_memory (const std::filesystem::path &path)
 True when uncompressed path size is within fastx_memory_map_max_bytes.
 

Variables

constexpr size_t cusbf::detail::kDefaultFastxHostRamSlackBytes = 4u << 30
 Default headroom left for the OS and other processes when sizing mmap.