fix for cuda-5.0