use thrust instead of cublas