[Llvm-bgq-discuss] compilation + core dump question

Hal Finkel hfinkel at anl.gov
Wed Sep 11 07:43:29 CDT 2013


----- Original Message -----
> 
> 
> 
> 
> I’ve just experimented with clang on the new BGQ at CSCS, I followed
> the instructions for installing the relocatable rpms and am building
> hdf5 using cmake.
> 
> 
> 
> things compile ok (but note that the code so far is all C, not C++)
> after I setup various paths to libs/includes etc,
> 
> 
> 
> when I try h5dump, I get
> 
> 
> 
> [biddisco at bbpbg1 hdf5_1_8_cmake]$ bin/h5dump -H
> /bbpfs/bgq/biddisco/build/hdftests/testing/hdf5-N0256-n64-t16384.sph
> 
> /bgsys/source/srcV1R2M0.14091/comm/sys/buildtools/pami/common/bgq/BgqPersonality.h:102:
> 
> /bgsys/source/srcV1R2M0.14091/comm/sys/buildtools/pami/common/bgq/BgqPersonality.h<102>
> 
> Aborted (core dumped)

I don't understand what you're trying to do there. If that executable was compiled with bgclang, and linked against PAMI, etc. then it can't be run on the frontend node. Can you explain?

> 
> 
> 
> now my suspicion is that I’ve linked to gcc versions of mpi and this
> is causing some trouble - the link line looks like this …
> 
> 
> 
> /tmp/bgclang/bin/clang

I used /tmp/bgclang as the example directory on the web page, but you might actually want to use someplace in your home directory ;)

 -Hal

> 
> -L/bgsys/drivers/ppcfloor/spi/lib
> 
> -L/bgsys/drivers/ppcfloor/comm/gcc/lib
> 
> -L/bgsys/drivers/ppcfloor/comm/sys/lib
> 
> -g CMakeFiles/h5dump.dir/h5dump.c.o
> CMakeFiles/h5dump.dir/h5dump_ddl.c.o
> CMakeFiles/h5dump.dir/h5dump_xml.c.o -o ../../bin/h5dump
> ../../bin/libhdf5_tools_debug.a ../../bin/libhdf5_debug.a -lm -ldl
> -lrt -lmpich -lmpl -lopa -lpami -lSPI -lSPI_cnk -lpthread -ldl -lrt
> -lmpich -lmpl -lopa -lpami -lSPI -lSPI_cnk -lpthread
> 
> 
> 
> the include path contains
> 
> -I/bgsys/drivers/ppcfloor/comm/gcc/include
> 
> 
> 
> apart from the duplication of several libraries on the link line.
> Does anything look wrong? Meanwhile - I will try setting everything
> up using the xl paths and see I that changes anything. (Do I need to
> compile mpich myself using clang?)
> 
> 
> 
> Thanks hopefully.
> 
> 
> 
> JB
> 
> 
> 
> 
> 
> --
> 
> John Biddiscombe, email:biddisco @.at.@ cscs.ch
> 
> http://www.cscs.ch/
> 
> CSCS, Swiss National Supercomputing Centre | Tel: +41 (91) 610.82.07
> 
> Via Trevano 131, 6900 Lugano, Switzerland | Fax: +41 (91) 610.82.82
> 
> 
> _______________________________________________
> llvm-bgq-discuss mailing list
> llvm-bgq-discuss at lists.alcf.anl.gov
> https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss
> 

-- 
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory


More information about the llvm-bgq-discuss mailing list