[Llvm-bgq-discuss] [maint at libelemental.org] Elemental build issues using bgclang on ALCF Vesta

Jack Poulson jpoulson at cc.gatech.edu
Sat Aug 2 14:51:54 CDT 2014


Hi Sayan,

I have re-enabled the function by avoiding attempts to use non-static
member variables in compile-time expressions:

https://github.com/elemental/Elemental/commit/d74f61e8b4ec366cecc2510de8de5ff096a77c65

I can again locally build Elemental with Clang-3.5-1ubuntu1 (trunk).

Jack

On 08/02/2014 03:31 PM, Jack Poulson wrote:
> Hi Sayan,
> 
> I was able to reproduce the error locally with Clang-3.5.-1ubuntu1 (trunk).
> 
> I have therefore (at least temporarily) disabled the troublesome
> Abstract[Block]DistMatrix::ConstructDiagonal routines since they are not
> yet in use anywhere in the library.
> 
> Thank you for reporting the issue!
> 
> Jack
> 
> On 08/01/2014 07:38 PM, Sayan Ghosh wrote:
>> 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 --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alcf.anl.gov/pipermail/llvm-bgq-discuss/attachments/20140802/f8bc2b01/attachment-0001.pgp>


More information about the llvm-bgq-discuss mailing list