[Llvm-bgq-discuss] Elemental build issues using bgclang on ALCF Vesta

Sayan Ghosh sayandeep52 at gmail.com
Fri Aug 1 18:38:31 CDT 2014


Hi,

I get a lot of errors when I compile with bgclang 3.5 on ALCF Vesta, the
paths of MPI/PAMI libraries have changed, so I had to make some (very
minor) modifications on the specific cmake files under toolchain folder of
Elemental (just removed ../gcc from _ROOT, as I see all {MPI and PAMI} libs
in ../comm/lib, and had to change some of the library link names e.g
-lmpich to -lmpich-gcc).

This is the error I get with bgclang:

/home/sghosh/projects/Elemental/src/core/BlockDistMatrix/./setup.hpp:147:32:
*error: non-type template argument is not a constant*
*      expression*
{ return new *BlockDistMatrix<T,this->UDiag,this->VDiag>(g,root)*; }

Clang++11 seems to not treat it as a compile time deterministic argument, I
played around with some static_casting, but could not make it work. I am
cc-ing llvm-bgclang-discuss as well, just for reporting. I cannot test it
on my laptop as I don't have the latest clang build, so please excuse me.

I was able to build Elemental successfully with gnu-4.7.2 though (installed
in /bgsys/drivers/ppcfloor/gnu-linux-4.7.2 - which is probably
unsupported?), using the updated toolchain cmake files.

I attach 2 files: updated cmake file for BGQ-Vesta-clang-netlib, and
build/include/El/config.h.

-- 
Regards,
Sayan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alcf.anl.gov/pipermail/llvm-bgq-discuss/attachments/20140801/16e201a4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BGQ-Vesta-clang-netlib.cmake
Type: text/x-cmake
Size: 2310 bytes
Desc: not available
URL: <http://lists.alcf.anl.gov/pipermail/llvm-bgq-discuss/attachments/20140801/16e201a4/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.h
Type: text/x-chdr
Size: 3253 bytes
Desc: not available
URL: <http://lists.alcf.anl.gov/pipermail/llvm-bgq-discuss/attachments/20140801/16e201a4/attachment.h>


More information about the llvm-bgq-discuss mailing list