fhelium/ntt_diagnostic.h
#include <fhelium/ntt_diagnostic.h> · namespace fhelium::ntt::diagnostic
NTT functions with a selectable shared-memory transform size, for differential testing and performance profiling.
Each function computes the result of the function of the same name in fhelium::ntt without the _override suffix. shared_memory_log_n, between 0 and 8, replaces the default
| Function | Devices | Summary |
|---|---|---|
forward_ntt_montgomery_power_of_two_radix_compact_override_ | CUDA, HIP | forward_ntt_montgomery_power_of_two_radix_compact_ with a selected shared-memory transform size. |
inverse_ntt_montgomery_power_of_two_radix_compact_override_ | CUDA, HIP | inverse_ntt_montgomery_power_of_two_radix_compact_ with a selected shared-memory transform size. |
forward_ntt_montgomery_power_of_two_radix_compact_override_
function View source
void fhelium::ntt::diagnostic::forward_ntt_montgomery_power_of_two_radix_compact_override_(
at::Tensor& montgomery_residues,
const at::Tensor& outer_twiddles,
const at::Tensor& radix_root_powers,
const at::Tensor& rns_params,
int64_t shared_memory_log_n);2
3
4
5
6
Devices: CUDA, HIP
Torch operator: torch.ops.fhelium_ntt_diagnostic_ops.forward_ntt_montgomery_power_of_two_radix_compact_override_
fhelium_ntt_diagnostic_ops::forward_ntt_montgomery_power_of_two_radix_compact_override_(Tensor(a!) montgomery_residues, Tensor outer_twiddles, Tensor radix_root_powers, Tensor rns_params, int shared_memory_log_n) -> ()forward_ntt_montgomery_power_of_two_radix_compact_ with a selected shared-memory transform size.
inverse_ntt_montgomery_power_of_two_radix_compact_override_
function View source
void fhelium::ntt::diagnostic::inverse_ntt_montgomery_power_of_two_radix_compact_override_(
at::Tensor& montgomery_residues,
const at::Tensor& outer_twiddles,
const at::Tensor& radix_root_powers,
const at::Tensor& rns_params,
int64_t shared_memory_log_n);2
3
4
5
6
Devices: CUDA, HIP
Torch operator: torch.ops.fhelium_ntt_diagnostic_ops.inverse_ntt_montgomery_power_of_two_radix_compact_override_
fhelium_ntt_diagnostic_ops::inverse_ntt_montgomery_power_of_two_radix_compact_override_(Tensor(a!) montgomery_residues, Tensor outer_twiddles, Tensor radix_root_powers, Tensor rns_params, int shared_memory_log_n) -> ()inverse_ntt_montgomery_power_of_two_radix_compact_ with a selected shared-memory transform size.