Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: Re: [OMPI devel] r27078 and OMPI build
From: Shamis, Pavel (shamisp_at_[hidden])
Date: 2012-08-29 10:14:03

The issue #2 was fixed in r27178.
Paul - Thanks for help !!!


Pavel (Pasha) Shamis

Computer Science Research Group
Computer Science and Math Division
Oak Ridge National Laboratory
On Aug 21, 2012, at 11:36 AM, Eugene Loh wrote:
r27078 (ML collective component) broke some Solaris OMPI builds.
1)  In ompi/mca/coll/ml/coll_ml_lmngr.c
    199 #ifdef HAVE_POSIX_MEMALIGN
    200     if((errno = posix_memalign(&lmngr->base_addr,
    201                     lmngr->list_alignment,
    202                     lmngr->list_size * lmngr->list_block_size))
!= 0) {
    203         ML_ERROR(("Failed to allocate memory: %s [%d]", errno,
    204         return OMPI_ERROR;
    205     }
    206 #else
    207     lmngr->base_addr =
    208         malloc(lmngr->list_size * lmngr->list_block_size +
    209     if(NULL == lmngr->base_addr) {
    210         ML_ERROR(("Failed to allocate memory: %s [%d]", errno,
    211         return OMPI_ERROR;
    212     }
    214     lmngr->base_addr =
    215             lmngr->list_align, uintptr_t);
    216 #endif
   The "#else" code path has multiple problems -- specifically at the
statement on lines 214-215:
   - OPAL_ALIGN needs to be defined (e.g., #include "opal/align.h")
   - uintptr_t need to be defined (e.g., #include "opal_stdint.h")
   - list_align should be list_alignment
I could fix, but need help with...
2)  Somehow,
coll_ml is getting pulled into  E.g., this doesn't look right:
   % nm ompi/.libs/ | grep mca_coll_ml
   [13161] |   2556704|       172|FUNC |LOCL |0    |11
   [13171] |   2555488|       344|FUNC |LOCL |0    |11
   [13173] |   2555392|        92|FUNC |LOCL |0    |11     |mca_coll_ml_err
   [23992] |         0|         0|FUNC |GLOB |0    |UNDEF
The UNDEF is causing a problem, but I'm guessing all that mca_coll_ml_
stuff shouldn't be in there at all in the first place.  This is on one
Solaris system, while another doesn't see the problem and builds fine.
devel mailing list