Define _pbc_kernels.