done with everything but cuda for scalarIntegrator