<div dir="ltr">Thanks Jack, I was able to compile on Vesta with bgclang after your fix. <div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 2, 2014 at 2:57 PM, Jack Poulson <span dir="ltr"><<a href="mailto:jpoulson@cc.gatech.edu" target="_blank">jpoulson@cc.gatech.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On second thought, I am not exactly sure why Clang is rejecting the<br>
code, as the relevant member variables *are* static constexpr's:<br>
<br>
<a href="https://github.com/elemental/Elemental/blob/master/include/El/core/DistMatrix/General.hpp#L23" target="_blank">https://github.com/elemental/Elemental/blob/master/include/El/core/DistMatrix/General.hpp#L23</a><br>

<br>
Nevertheless, the issue has been sidestepped.<br>
<span class="HOEnZb"><font color="#888888"><br>
Jack<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On 08/02/2014 03:51 PM, Jack Poulson wrote:<br>
> Hi Sayan,<br>
><br>
> I have re-enabled the function by avoiding attempts to use non-static<br>
> member variables in compile-time expressions:<br>
><br>
> <a href="https://github.com/elemental/Elemental/commit/d74f61e8b4ec366cecc2510de8de5ff096a77c65" target="_blank">https://github.com/elemental/Elemental/commit/d74f61e8b4ec366cecc2510de8de5ff096a77c65</a><br>
><br>
> I can again locally build Elemental with Clang-3.5-1ubuntu1 (trunk).<br>
><br>
> Jack<br>
><br>
> On 08/02/2014 03:31 PM, Jack Poulson wrote:<br>
>> Hi Sayan,<br>
>><br>
>> I was able to reproduce the error locally with Clang-3.5.-1ubuntu1 (trunk).<br>
>><br>
>> I have therefore (at least temporarily) disabled the troublesome<br>
>> Abstract[Block]DistMatrix::ConstructDiagonal routines since they are not<br>
>> yet in use anywhere in the library.<br>
>><br>
>> Thank you for reporting the issue!<br>
>><br>
>> Jack<br>
>><br>
>> On 08/01/2014 07:38 PM, Sayan Ghosh wrote:<br>
>>> Hi,<br>
>>><br>
>>> I get a lot of errors when I compile with bgclang 3.5 on ALCF Vesta, the<br>
>>> paths of MPI/PAMI libraries have changed, so I had to make some (very<br>
>>> minor) modifications on the specific cmake files under toolchain folder<br>
>>> of Elemental (just removed ../gcc from _ROOT, as I see all {MPI and<br>
>>> PAMI} libs in ../comm/lib, and had to change some of the library link<br>
>>> names e.g -lmpich to -lmpich-gcc).<br>
>>><br>
>>> This is the error I get with bgclang:<br>
>>><br>
>>> /home/sghosh/projects/Elemental/src/core/BlockDistMatrix/./setup.hpp:147:32:<br>
>>> *error: non-type template argument is not a constant*<br>
>>> *      expression*<br>
>>> { return new *BlockDistMatrix<T,this->UDiag,this->VDiag>(g,root)*; }<br>
>>><br>
>>> Clang++11 seems to not treat it as a compile time deterministic<br>
>>> argument, I played around with some static_casting, but could not make<br>
>>> it work. I am cc-ing llvm-bgclang-discuss as well, just for reporting. I<br>
>>> cannot test it on my laptop as I don't have the latest clang build, so<br>
>>> please excuse me.<br>
>>><br>
>>> I was able to build Elemental successfully with gnu-4.7.2 though<br>
>>> (installed in /bgsys/drivers/ppcfloor/gnu-linux-4.7.2 - which is<br>
>>> probably unsupported?), using the updated toolchain cmake files.<br>
>>><br>
>>> I attach 2 files: updated cmake file for BGQ-Vesta-clang-netlib, and<br>
>>> build/include/El/config.h.<br>
>>><br>
>>> --<br>
>>> Regards,<br>
>>> Sayan<br>
>><br>
><br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>Regards,</div>Sayan<br></div>
</div>