upgraded for cuda 6.5 and vs 2013