Can you try setting the environment variable OMPI_CXX=<put the path to gcc-5 here>
Then run: mpicxx -v and see what version it says its running. You may have to be careful mixing the versions too far apart. S. — Si Hammond Scalable Computer Architectures Center for Computing Research Sandia National Laboratories, NM, USA > On Oct 6, 2016, at 7:56 AM, Aditya <adityasarma...@gmail.com> wrote: > > Hello, > > I'm a senior year Computer Science student working on Parallel Clustering > Algorithms at BITS Pilani, India. I have a few questions about using mpicc > and mpicxx with multiple versions of gcc / g++. > > I am using Ubuntu 12.04 equipped with gcc 4.6.4. The currently installed > mpicc is bound to gcc4.6.4. I want mpicc to be bound with gcc-5 that I have > installed in my pc. > > Is there a way to do the binding to gcc as a compiler flag or something of > that sort. > > PS: Please do reply if you have a solution. I am unable to run a hybrid code > on my pc because of this issue. > > > Regards, > Aditya. > > > > > _______________________________________________ > users mailing list > users@lists.open-mpi.org > https://rfd.newmexicoconsortium.org/mailman/listinfo/users _______________________________________________ users mailing list users@lists.open-mpi.org https://rfd.newmexicoconsortium.org/mailman/listinfo/users