added copy of findcuda from cuda3.0