1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Attempt to fix cuda build

This commit is contained in:
Michael Marshall 2019-11-13 00:02:51 +00:00
parent 55e743aad6
commit 66e0811317

View File

@ -72,12 +72,12 @@ public:
// Construct a named tensor explicitly specifying size of each dimension
template<typename... IndexTypes>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE NamedTensor(const std::string &Name,
const std::array<std::string, NumIndices> &indexNames,
const std::array<std::string, NumIndices_> &indexNames,
Eigen::Index firstDimension, IndexTypes... otherDimensions)
: tensor(firstDimension, otherDimensions...),
IndexNames{indexNames.begin(), indexNames.end()}, Name_{Name}, DefaultIndexNames_{indexNames}
{
if(sizeof...(otherDimensions) + 1 != NumIndices)
if(sizeof...(otherDimensions) + 1 != NumIndices_)
HADRONS_ERROR(Argument, "NamedTensor: dimensions != tensor rank");
}