[CMake] Platform file for Bluegene/P ?
Marcel Loose
loose at astron.nl
Tue Apr 6 05:02:35 EDT 2010
AFAIK, you can also use FindMPI() for the BlueGene/P. It should find all
required libs to link against. That's how I do it.
Best regards,
Marcel Loose.
On Fri, 2010-04-02 at 18:57 -0400, pat marion wrote:
> The BlueGeneL platform file does indeed add '-lnss_files -lnss_dns
> -lresolv' to the link line. This should be removed on BlueGene/P.
>
> If you use the mpixlcxx wrapper then you don't need to add any extra
> libraries to the link line. If you want to invoke xlc directly
> without using the mpi wrapper script, then here is the link line you
> need to link against mpi:
>
> -L/bgsys/drivers/ppcfloor/comm/lib
> -lmpich.cnk -ldcmfcoll.cnk -ldcmf.cnk
> -L/bgsys/drivers/ppcfloor/runtime/SPI
> -lSPI.cna -lrt -lpthread
>
> Pat
>
>
>
>
> Hi,
>
> I need to cross compile code on IBM Bluegene/P, while
> according to
> the wikipage on
>
> http://www.itk.org/Wiki/CMake_Cross_Compiling
>
> I can not find BluegeneP.cmake, but BluegeneL.cmake instead.
> So I used
> it and found the following error.
> Is this nss_dns, nss_files and resolv a required lib ?
> mpixlcxx works
> for a simple hello world program without any library.
>
>
>
> /bgsys/drivers/ppcfloor/comm/bin/mpixlc -Wl,-relax -qthreaded
> -qalias=noansi -qhalt=e
> CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o
> -o cmTryCompileExec -Wl,-lc -lnss_files -lnss_dns -lresolv
>
> /bgsys/drivers/ppcfloor/gnu-linux/powerpc-bgp-linux/bin/ld:
> cannot find
> -lnss_files
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list