Skip to content
fn

gelu_exact_cdf_f32

void gelu_exact_cdf_f32(const float *__restrict x, float *__restrict cdf, int n)

First pass over a tile: cdf[i] = Phi(x[i]) = (1 + erf(x[i] / sqrt 2)) / 2.

Never inlined, so its loop holds the erf's constants in registers and nothing else (see the header note).