The one line change below fixes a problem with the portable_platform header with respect to PathScale compilers that lack a patchlevel. For instance, the 3.2 version I have defines __PATHCC_PATCHLEVEL__ to be empty.

I am the maintainer of GASNet's portable_platform.h from which Open MPI's equivalent is derived. So consider this fix as coming from "upstream".

-Paul

--- openmpi-1.5rc5/ompi/include/mpi_portable_platform.h.in.orig 2010-08-27 16:37:09.000000000 -0700 +++ openmpi-1.5rc5/ompi/include/mpi_portable_platform.h.in 2010-08-27 16:38:28.000000000 -0700
@@ -110,7 +110,7 @@
#        define PLATFORM_COMPILER_PATHSCALE_C  1
#    endif
#    define PLATFORM_COMPILER_VERSION \
- PLATFORM_COMPILER_VERSION_INT(__PATHCC__,__PATHCC_MINOR__,__PATHCC_PATCHLEVEL__) + PLATFORM_COMPILER_VERSION_INT(__PATHCC__,__PATHCC_MINOR__,__PATHCC_PATCHLEVEL__+0)
#    define PLATFORM_COMPILER_VERSION_STR __PATHSCALE__

#elif defined(__PGI)

--
Paul H. Hargrove                          phhargr...@lbl.gov
Future Technologies Group
HPC Research Department                   Tel: +1-510-495-2352
Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900

Reply via email to