Fixed bug in cuBLAS and MPI init.