add cuda6 support