Skip to main content

Crate poulpy_cpu_rayon

Crate poulpy_cpu_rayon 

Source
Expand description

Rayon-scheduled task executor and backend wrappers shared by the CPU backend crates.

Modules§

fft64
Shared Rayon-scheduled wrapper for the FFT64 CPU backends.
normalize
Coefficient-range-parallel normalization and gadget digit layout: carries propagate across limbs per coefficient, so disjoint coefficient ranges split freely.
ntt4x30
Rayon-scheduled wrapper shared by the NTT4x30 backends that store the transform domain as packed u32 residues.
tuning
Thread-count diagnostic for the Rayon backends.

Macros§

impl_fft64_rayon_backend
Implements the Rayon-scheduled FFT64 backend $rayon on top of the serial backend $base.
impl_ntt4x30_rayon_backend
Implements the Rayon-scheduled NTT4x30 backend $rayon on top of the serial backend $base, which implements PackedNtt4x30Base.
rayon_forward_znx
rayon_parallel_assign
rayon_parallel_binary
rayon_parallel_shift
rayon_parallel_unary

Structs§

FFT64PortableRayon
Rayon-scheduled variant of FFT64Portable.
NTT4x30PortableRayon
Rayon-scheduled variant of NTT4x30Portable.
RayonTaskExecutor

Constants§

DEFAULT_IDLE_POLLING
Idle polling window used unless set_idle_polling changes it.

Traits§

RayonTuning
Backend-local thresholds for Rayon scheduling.

Functions§

idle_polling
The idle polling window, or None when polling is off.
parallel_chunk_len
Chunk length for coefficient-wise parallel kernels, or None when the slice is too short to repay scheduling.
parallel_limb_tasks
Whether a per-limb task split is worth scheduling.
set_idle_polling
Sets how long idle workers keep polling for work after the last parallel region, or turns polling off.
take_scratch
Takes a len-element typed slice from the arena.
workers
Worker slices to size scratch for, capped by the kernel’s own bound.
workers_within
Same as workers, bounded by the scratch bytes actually available.

Type Aliases§

FFT64CIPortableRayon
FFT64PortableRayon over the conjugate invariant ring.
NTT4x30CIPortableRayon
NTT4x30PortableRayon over the conjugate invariant ring.