Motivations#
The CMB spectra follow from the Einstein-Boltzmann solve in two more steps. The line-of-sight integral projects the sources \(S(k, \tau)\) onto each multipole,
and an integral over \(k\) against the primordial curvature spectrum \(P_\mathcal{R}(k)\) gives the angular power spectrum,
where \(X\) and \(Y\) stand for the temperature \(\Theta_\ell\) or the E-mode polarization \(E_\ell\). DISCO-CMB builds upon the results of the Einstein-Boltzmann solve in DISCO-EB.
Why run it on a GPU?#
The line-of-sight integral consists of lots of multiplication-accumulation operations with no branches and no adaptive steps. \(j_\ell(k\chi)\) depends only on the multipole, the wave number and the distance, so once a batch shares grid of \(k\) and \(\chi\) one table of Bessel functions can be pre-computed and the projection becomes a large matrix product over a batch of cosmologies, identical and independent work that is ideal for a GPU. Lensing is again a contraction against fixed tables, since the Wigner \(d\)-functions of the correlation-function method depend only on \(\ell_\mathrm{max}\) and the angles.