Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TiledArray expression dot is broken with latest version. #12

Closed
calewis opened this issue Jul 8, 2014 · 0 comments
Closed

TiledArray expression dot is broken with latest version. #12

calewis opened this issue Jul 8, 2014 · 0 comments

Comments

@calewis
Copy link
Member

calewis commented Jul 8, 2014

[ 52%] Building CXX object src/lib/chemistry/qc/scf/CMakeFiles/scf.dir/taclscf.cpp.o
cd /Users/drewlewis/software/build/mpqc/finalizing_tascf/src/lib/chemistry/qc/scf && /usr/local/bin/mpicxx -DHAVE_CONFIG_H -DMPQC_NEW_FEATURES -DMPQC_R12 -std=c++11 -DNDEBUG -O3 -std=c++11 -stdlib=libc++ -O3 -DNDEBUG -I/Users/drewlewis/software/build/mpqc/finalizing_tascf/src/lib -I/Users/drewlewis/software/mpqc_teaching/src/lib -I/Users/drewlewis/software/mpqc_teaching/include -I/usr/local/Cellar/mpich2/3.1/include -I/Users/drewlewis/software/build/mpqc/optimize/external/build/libint/include -I/Users/drewlewis/software/build/mpqc/optimize/external/build/libint/include/libint2 -I/usr/local/include/eigen3 -I/Users/drewlewis/software/install/elem/include -I/Users/drewlewis/software/install/tiledarray/opt/include -I/Users/drewlewis/software/build/mpqc/finalizing_tascf/external/build/boost/src/boost -o CMakeFiles/scf.dir/taclscf.cpp.o -c /Users/drewlewis/software/mpqc_teaching/src/lib/chemistry/qc/scf/taclscf.cpp
In file included from /Users/drewlewis/software/mpqc_teaching/src/lib/chemistry/qc/scf/taclscf.cpp:28:
In file included from /Users/drewlewis/software/mpqc_teaching/src/lib/chemistry/qc/scf/taclscf.h:31:
In file included from /Users/drewlewis/software/mpqc_teaching/src/lib/chemistry/qc/scf/tascf.h:31:
In file included from /Users/drewlewis/software/mpqc_teaching/src/lib/chemistry/qc/wfn/tawfn.h:34:
In file included from /Users/drewlewis/software/mpqc_teaching/src/lib/chemistry/qc/basis/tiledbasisset.h:31:
In file included from /Users/drewlewis/software/install/tiledarray/opt/include/tiledarray.h:24:
In file included from /Users/drewlewis/software/install/tiledarray/opt/include/TiledArray/array.h:28:
In file included from /Users/drewlewis/software/install/tiledarray/opt/include/TiledArray/expressions.h:29:
In file included from /Users/drewlewis/software/install/tiledarray/opt/include/TiledArray/expressions/scal_expr.h:29:
In file included from /Users/drewlewis/software/install/tiledarray/opt/include/TiledArray/expressions/unary_expr.h:29:
/Users/drewlewis/software/install/tiledarray/opt/include/TiledArray/expressions/expr.h:403:50: error:
no type named 'eval_type' in 'TiledArray::Tensor<double,
Eigen::aligned_allocator >'
typename D::engine_type::value_type::eval_type> > reduction_op_type;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/Users/drewlewis/software/mpqc_teaching/src/lib/chemistry/qc/scf/taclscf.cpp:139:24: note:
in instantiation of function template specialization
'TiledArray::expressions::Expr<TiledArray::expressions::TsrExpr<const
TiledArray::Array<double, 2, TiledArray::Tensor<double,
Eigen::aligned_allocator >, TiledArray::DensePolicy> >
>::dot<TiledArray::expressions::AddExpr<TiledArray::expressions::TsrExpr<const
TiledArray::Array<double, 2, TiledArray::Tensor<double,
Eigen::aligned_allocator >, TiledArray::DensePolicy> >,
TiledArray::expressions::TsrExpr<TiledArray::Array<double, 2,
TiledArray::Tensor<double, Eigen::aligned_allocator >,
TiledArray::DensePolicy> > > >' requested here
return rdm1()("i,j").dot(ao_hcore()("i,j") + ao_fock()("i,j"));
^
In file included from /Users/drewlewis/software/mpqc_teaching/src/lib/chemistry/qc/scf/taclscf.cpp:28:
In file included from /Users/drewlewis/software/mpqc_teaching/src/lib/chemistry/qc/scf/taclscf.h:31:
In file included from /Users/drewlewis/software/mpqc_teaching/src/lib/chemistry/qc/scf/tascf.h:31:
In file included from /Users/drewlewis/software/mpqc_teaching/src/lib/chemistry/qc/wfn/tawfn.h:34:
In file included from /Users/drewlewis/software/mpqc_teaching/src/lib/chemistry/qc/basis/tiledbasisset.h:31:
In file included from /Users/drewlewis/software/install/tiledarray/opt/include/tiledarray.h:24:
In file included from /Users/drewlewis/software/install/tiledarray/opt/include/TiledArray/array.h:28:
In file included from /Users/drewlewis/software/install/tiledarray/opt/include/TiledArray/expressions.h:29:
In file included from /Users/drewlewis/software/install/tiledarray/opt/include/TiledArray/expressions/scal_expr.h:29:
In file included from /Users/drewlewis/software/install/tiledarray/opt/include/TiledArray/expressions/unary_expr.h:29:
/Users/drewlewis/software/install/tiledarray/opt/include/TiledArray/expressions/expr.h:405:16: error:
no matching member function for call to 'reduce'
return reduce(right_expr, reduction_op_type(), world);
^~~~~~
/Users/drewlewis/software/install/tiledarray/opt/include/TiledArray/expressions/expr.h:277:7: note:
candidate template ignored: substitution failure [with D =
TiledArray::expressions::AddExpr<TiledArray::expressions::TsrExpr<const
TiledArray::Array<double, 2, TiledArray::Tensor<double,
Eigen::aligned_allocator >, TiledArray::DensePolicy> >,
TiledArray::expressions::TsrExpr<TiledArray::Array<double, 2,
TiledArray::Tensor<double, Eigen::aligned_allocator >,
TiledArray::DensePolicy> > >, Op = int]: type 'int' cannot be used prior to '::'
because it has no members
reduce(const Expr& right_expr, const Op& op,
^
/Users/drewlewis/software/install/tiledarray/opt/include/TiledArray/expressions/expr.h:246:7: note:
candidate function template not viable: requires at most 2 arguments, but 3 were
provided
reduce(const Op& op, madness::World& world = madness::World::get_default(...

justusc added a commit that referenced this issue Jul 11, 2014
- EngineTraits now use the non-intrusive eval_triat class to deduce the evaluation type of a tile.
- Expression reduction functions now use the correct type in reduction functions.
@calewis calewis closed this as completed Aug 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant