removed warnings and made compatible with the new cublasv2 api