Skip to main content

FUSampler

The FUSampler class extends the Sampler class to handle fusion samplers across multiple devices. It provides functionality for managing a device mask and accessing a collection of fusion samplers, making it useful in high-performance computing and multi-device workflows. The class allows querying the number of fusion samplers and provides methods to retrieve individual samplers from the fusion, enabling flexible sampling across different devices.

#include <platform/TellusimSampler.h>

Inheritance

Constructors

FUSampler()
explicit FUSampler(Array<Sampler> samplers, bool owner = false)

Methods

Device mask.

void setMask(uint32_t mask)
uint32_t getMask() const

Fusion samplers.

uint32_t getNumSamplers() const
const Sampler getSampler(uint32_t index) const
Sampler getSampler(uint32_t index)