These are chat archives for elemental/chat

21st
Mar 2017
Jack Poulson
@poulson
Mar 21 2017 03:51
would you mind pasting the error and/or an example code?
Edward Vigmond
@vigmond
Mar 21 2017 09:01
The code is as above. main.cc:221:47: error: there are no arguments to ‘DefaultGrid’ that depend on a template parameter, so a declaration of ‘DefaultGrid’ must be available [-fpermissive]
DistMatrix<F,CIRC,CIRC> tmp(n,1,DefaultGrid(),rank);
^
main.cc:221:47: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
main.cc: In instantiation of ‘void fromDistMatrix(El::DistMatrix<T, (El::DistNS::Dist)0u, (El::DistNS::Dist)2u, (El::DistWrapNS::DistWrap)0u>&, T, int, int, int) [with T = float; F = double]’:
main.cc:254:34: required from here
main.cc:221:47: error: ‘DefaultGrid’ was not declared in this scope
makefile:24: recipe for target 'main.o' failed
make: **
[main.o] Error 1
Jack Poulson
@poulson
Mar 21 2017 19:58
ah, yes, it is Grid::Default() now
it makes more sense for it to be a static member function