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

Sayan Ghosh sayandeep52 at gmail.com
Sat Aug 2 19:34:51 CDT 2014


Thanks Jack, I was able to compile on Vesta with bgclang after your fix.



On Sat, Aug 2, 2014 at 2:57 PM, Jack Poulson <jpoulson at cc.gatech.edu> wrote:

> On second thought, I am not exactly sure why Clang is rejecting the
> code, as the relevant member variables *are* static constexpr's:
>
>
> https://github.com/elemental/Elemental/blob/master/include/El/core/DistMatrix/General.hpp#L23
>
> Nevertheless, the issue has been sidestepped.
>
> Jack
>
> On 08/02/2014 03:51 PM, Jack Poulson wrote:
> > 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
> >>
> >
>
>


-- 
Regards,
Sayan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alcf.anl.gov/pipermail/llvm-bgq-discuss/attachments/20140802/a204c15a/attachment.html>


More information about the llvm-bgq-discuss mailing list