Teuchos: strange warning under CUDA
Created by: jhux2
Here is the warning:
246/442] Building CXX object packages/tpetra/core/src.../tpetra.dir/Tpetra_CrsMatrix_DOUBLE_INT_INT_CUDA.cpp.o
/home/jhu/software/trilinos/Trilinos/packages/teuchos/numerics/src/Teuchos_SerialDenseMatrix.hpp: In instantiation of ‘Teuchos::SerialDenseMatrix<OrdinalType, ScalarType>& Teuchos::SerialDenseMatrix<OrdinalType, ScalarType>::operator=(const Teuchos::SerialDenseMatrix<OrdinalType, ScalarType>&) [with OrdinalType = int; ScalarType = double]’:
/home/jhu/software/trilinos/Trilinos/packages/teuchos/numerics/src/Teuchos_SerialDenseSolver.hpp:690:11: required from ‘int Teuchos::SerialDenseSolver<OrdinalType, ScalarType>::solve() [with OrdinalType = int; ScalarType = double]’
/home/jhu/software/trilinos/Trilinos/packages/muelu/src/Transfers/BlackBox/MueLu_BlackBoxPFactory_def.hpp:1637:1: required from ‘void MueLu::BlackBoxPFactory<Scalar, LocalOrdinal, GlobalOrdinal, Node>::ComputeLocalEntries(const Teuchos::RCP<const Xpetra::Matrix<Scalar, LocalOrdinal, GlobalOrdinal, Node> >&, Teuchos::Array<T>, Teuchos::Array<T>, LocalOrdinal, Teuchos::Array<T>, Teuchos::Array<T>, LocalOrdinal, Teuchos::Array<T>, Teuchos::Array<GlobalOrdinal>, Teuchos::Array<GlobalOrdinal>, Teuchos::Array<T>, Teuchos::Array<bool>, Teuchos::Array<int>, std::__cxx11::string, std::__cxx11::string, Teuchos::Array<T>, LocalOrdinal, Teuchos::Array<GlobalOrdinal>, Teuchos::SerialDenseMatrix<LocalOrdinal, Scalar>&, Teuchos::SerialDenseMatrix<LocalOrdinal, Scalar>&, Teuchos::SerialDenseMatrix<LocalOrdinal, Scalar>&, Teuchos::Array<T>&, Teuchos::Array<T>&) const [with Scalar = double; LocalOrdinal = int; GlobalOrdinal = int; Node = Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial>; std::__cxx11::string = std::__cxx11::basic_string<char>]’
/home/jhu/software/trilinos/Trilinos/packages/muelu/src/Utils/MueLu_ETI_4arg.hpp:42:23: required from here
/home/jhu/software/trilinos/Trilinos/packages/teuchos/numerics/src/Teuchos_SerialDenseMatrix.hpp:659:14: warning: non-constant array new length must be specified without parentheses around the type-id [-Wvla]
values_ = new ScalarType[newsize];
~^~~~~~~~~~~~~~~~~~~~~~~~~~~
but as you can see, there are no parentheses.
@trilinos/teuchos