Author: bugman Date: Tue Feb 23 18:57:38 2010 New Revision: 10870 URL: http://svn.gna.org/viewcvs/relax?rev=10870&view=rev Log: Added vendor info to the mpi4py processor intro string I.e. Open MPI 1.3.3 is now printed out as well to help with debugging. Modified: branches/multi_processor_merge/multi/mpi4py_processor.py Modified: branches/multi_processor_merge/multi/mpi4py_processor.py URL: http://svn.gna.org/viewcvs/relax/branches/multi_processor_merge/multi/mpi4py_processor.py?rev=10870&r1=10869&r2=10870&view=diff ============================================================================== --- branches/multi_processor_merge/multi/mpi4py_processor.py (original) +++ branches/multi_processor_merge/multi/mpi4py_processor.py Tue Feb 23 18:57:38 2010 @@ -117,7 +117,6 @@ MPI.COMM_WORLD.Abort() - #TODO: MAY NEED support for widths? def get_intro_string(self): """Return the string to append to the end of the relax introduction string. @@ -128,8 +127,15 @@ # Get the specific MPI version. version_info = MPI.Get_version() + # The vendor info. + vendor = MPI.get_vendor() + vendor_name = vendor[0] + vendor_version = str(vendor[1][0]) + for i in range(1, len(vendor[1])): + vendor_version = vendor_version + '.%i' % vendor[1][i] + # Return the string. - return "MPI running via mpi4py with %d slave processors & 1 master. Using MPI version %s.%s." % (self.processor_size(), version_info[0], version_info[1]) + return "MPI %s.%s running via mpi4py with %i slave processors & 1 master. Using %s %s." % (version_info[0], version_info[1], self.processor_size(), vendor_name, vendor_version) def get_name(self):