remove cudaThreadExit().