[mpich-discuss] mpich-3.2a for Blue Gene /Q omits spi libraries from the wrappers

Rob Latham robl at mcs.anl.gov
Tue Sep 23 13:40:23 CDT 2014



On 09/16/2014 04:06 PM, William Scullin wrote:
> When building mpich-3.2a for Blue Gene /Q and following the same
> procedure used for building mpich-3.1.2 for BG/Q, the required linking
> information for spi and pami is omitted from the wrappers. I'm not
> sure if this is intentional or not.

Looks like we finally fixed that one:

https://trac.mpich.org/projects/mpich/changeset/e8b11d0a

==rob


>
> Thanks,
> William
>
>
> Patching the wrappers to reflect the required linking gives the following diff :
>
> [wscullin at vestasn1 ~]$ diff
> /projects/Operations/wscullin/mpich-3.2a1/gcc-4.4.7/bin/mpicc
> /projects/Operations/wscullin/mpich-3.2a1/gcc-4.4.7/bin/mpicc-postpatch
> 265c265
> <         $Show $CC   $PROFILE_INCPATHS
> -L/bgsys/drivers/V1R2M2/ppc64/spi/lib
> -L/bgsys/drivers/V1R2M2/ppc64/comm/lib "${allargs[@]}" -I$includedir
> -L$libdir $PROFILE_PRELIB $PROFILE_FOO $rpath_flags -lmpi
> $PROFILE_POSTLIB
> ---
>>          $Show $CC   $PROFILE_INCPATHS    -L/bgsys/drivers/V1R2M2/ppc64/spi/lib -L/bgsys/drivers/V1R2M2/ppc64/comm/lib "${allargs[@]}" -I$includedir -L$libdir $PROFILE_PRELIB $PROFILE_FOO $rpath_flags -lmpi  $PROFILE_POSTLIB  -lpami-gcc -lpthread   -lSPI -lSPI_cnk -lrt -lstdc++
>
> Full diff of mpich-3.1.2 versus 3.2a wrappers:
>
> [wscullin at vestasn1 ~]$ diff
> /projects/Operations/wscullin/mpich-3.1.2/gcc-4.4.7/bin/mpicc
> /projects/Operations/wscullin/mpich-3.2a1/gcc-4.4.7/bin/mpicc
> 30,34c30,34
> < prefix=/projects/Operations/wscullin/mpich-3.1.2/gcc-4.4.7
> < exec_prefix=/projects/Operations/wscullin/mpich-3.1.2/gcc-4.4.7
> < sysconfdir=/projects/Operations/wscullin/mpich-3.1.2/gcc-4.4.7/etc
> < includedir=/projects/Operations/wscullin/mpich-3.1.2/gcc-4.4.7/include
> < libdir=/projects/Operations/wscullin/mpich-3.1.2/gcc-4.4.7/lib
> ---
>> prefix=/projects/Operations/wscullin/mpich-3.2a1/gcc-4.4.7
>> exec_prefix=/projects/Operations/wscullin/mpich-3.2a1/gcc-4.4.7
>> sysconfdir=/projects/Operations/wscullin/mpich-3.2a1/gcc-4.4.7/etc
>> includedir=/projects/Operations/wscullin/mpich-3.2a1/gcc-4.4.7/include
>> libdir=/projects/Operations/wscullin/mpich-3.2a1/gcc-4.4.7/lib
> 40c40
> < MPICH_VERSION="3.1.2"
> ---
>> MPICH_VERSION="3.2a1"
> 262c262
> <         $Show $CC   $PROFILE_INCPATHS
> -L/bgsys/drivers/V1R2M2/ppc64/spi/lib
> -L/bgsys/drivers/V1R2M2/ppc64/comm/lib
> -L/bgsys/drivers/V1R2M2/ppc64/spi/lib
> -L/bgsys/drivers/V1R2M2/ppc64/comm/lib "${allargs[@]}" -I$includedir
> ---
>>          $Show $CC   $PROFILE_INCPATHS    -L/bgsys/drivers/V1R2M2/ppc64/spi/lib -L/bgsys/drivers/V1R2M2/ppc64/comm/lib "${allargs[@]}" -I$includedir
> 265c265
> <         $Show $CC   $PROFILE_INCPATHS
> -L/bgsys/drivers/V1R2M2/ppc64/spi/lib
> -L/bgsys/drivers/V1R2M2/ppc64/comm/lib
> -L/bgsys/drivers/V1R2M2/ppc64/spi/lib
> -L/bgsys/drivers/V1R2M2/ppc64/comm/lib "${allargs[@]}" -I$includedir
> -L$libdir $PROFILE_PRELIB $PROFILE_FOO $rpath_flags -lmpi
> $PROFILE_POSTLIB  -lpami-gcc -lpthread   -lSPI -lSPI_cnk -lrt -lstdc++
> ---
>>          $Show $CC   $PROFILE_INCPATHS    -L/bgsys/drivers/V1R2M2/ppc64/spi/lib -L/bgsys/drivers/V1R2M2/ppc64/comm/lib "${allargs[@]}" -I$includedir -L$libdir $PROFILE_PRELIB $PROFILE_FOO $rpath_flags -lmpi  $PROFILE_POSTLIB
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss
>

-- 
Rob Latham
Mathematics and Computer Science Division
Argonne National Lab, IL USA
_______________________________________________
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss


More information about the discuss mailing list