Numerical cosmology on the GPU with Enzo and Ramses