#[gpu_only]
Creates a cpu version of the function which panics and cfg-gates the function for only nvptx/nvptx64.