Prevent CUDA `calling a __host__ function from a __host__ __device__ function is not allowed` error.