two passes loading cuda on 2D