Skip to content

conversion from ‘int’ to non-scalar type ‘El::BigFloat’  #199

@gidiko

Description

@gidiko

When configuring Elemental build (for use in conda recipes for libSkylark) using:

cmake \
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
-DCMAKE_CXX_COMPILER="${PREFIX}/bin/g++" \
-DCMAKE_C_COMPILER="${PREFIX}/bin/gcc" \
-DCMAKE_Fortran_COMPILER="${PREFIX}/bin/gfortran" \
-DEL_USE_64BIT_INTS=ON \
-DEL_HAVE_QUADMATH=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DEL_HYBRID=ON \
-DBUILD_SHARED_LIBS=ON \
-DMATH_LIBS="-L${PREFIX}/lib -lopenblas -lm" \
-DINSTALL_PYTHON_PACKAGE=ON \
-DEL_BUILD_METIS=ON \
-DEL_DISABLE_VALGRIND=ON \
-DEL_DISABLE_PARMETIS=ON \
..

THEN

  • Building Elemental 71fce6e (from May 3, 2016) succeeds.

  • Building Elemental 0.87.2 fails with:

In file included from /u/gkollias/anaconda2/conda-bld/work/include/El/lapack_like.hpp:23:0,
                 from /u/gkollias/anaconda2/conda-bld/work/include/El.hpp:17,
                 from /u/gkollias/anaconda2/conda-bld/work/src/lapack_like/spectral/Schur.cpp:9:
/u/gkollias/anaconda2/conda-bld/work/include/El/lapack_like/funcs.hpp: In instantiation of ‘void El::schur::SDC(El::Matrix<T>&, El::Matrix<El::Complex<typename El::BaseHelper<Real>::type> >&, El::Matrix<T>&, bool, El::SDCCtrl<typename El::BaseHelper<Real>::type>) [with F = El::BigFloat; typename El::BaseHelper<Real>::type = El::BigFloat]’:
/u/gkollias/anaconda2/conda-bld/work/src/lapack_like/spectral/Schur.cpp:33:61:   required from ‘void El::Schur(El::Matrix<T>&, El::Matrix<El::Complex<typename El::BaseHelper<Real>::type> >&, const El::SchurCtrl<typename El::BaseHelper<Real>::type>&) [with F = El::BigFloat; typename El::BaseHelper<Real>::type = El::BigFloat]’
/u/gkollias/anaconda2/conda-bld/work/include/El/macros/Instantiate.h:111:1:   required from here
/u/gkollias/anaconda2/conda-bld/work/include/El/lapack_like/funcs.hpp:27:8: error: conversion from ‘int’ to non-scalar type ‘El::BigFloat’ requested
 struct SignCtrl
        ^
/u/gkollias/anaconda2/conda-bld/work/include/El/lapack_like/funcs.hpp:27:8: error: conversion from ‘int’ to non-scalar type ‘El::BigFloat’ requested
In file included from /u/gkollias/anaconda2/conda-bld/work/include/El/lapack_like.hpp:22:0,
                 from /u/gkollias/anaconda2/conda-bld/work/include/El.hpp:17,
                 from /u/gkollias/anaconda2/conda-bld/work/src/lapack_like/spectral/Schur.cpp:9:
/u/gkollias/anaconda2/conda-bld/work/include/El/lapack_like/spectral.hpp:808:8: note: synthesized method ‘constexpr El::SignCtrl<El::BigFloat>::SignCtrl()’ first required here
 struct SDCCtrl
        ^
/u/gkollias/anaconda2/conda-bld/work/include/El/lapack_like/spectral.hpp:821:8: note: synthesized method ‘constexpr El::SDCCtrl<El::BigFloat>::SDCCtrl()’ first required here
 struct SchurCtrl
        ^
In file included from /u/gkollias/anaconda2/conda-bld/work/src/lapack_like/spectral/Schur.cpp:15:0:
/u/gkollias/anaconda2/conda-bld/work/src/lapack_like/spectral/./Schur/SDC.hpp:976:28: note: synthesized method ‘constexpr El::SchurCtrl<El::BigFloat>::SchurCtrl()’ first required here
         SchurCtrl<Base<F>> schurCtrl;
                            ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions