mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
Attempt to fix cuda build
This commit is contained in:
parent
55e743aad6
commit
66e0811317
@ -72,12 +72,12 @@ public:
|
|||||||
// Construct a named tensor explicitly specifying size of each dimension
|
// Construct a named tensor explicitly specifying size of each dimension
|
||||||
template<typename... IndexTypes>
|
template<typename... IndexTypes>
|
||||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE NamedTensor(const std::string &Name,
|
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)
|
Eigen::Index firstDimension, IndexTypes... otherDimensions)
|
||||||
: tensor(firstDimension, otherDimensions...),
|
: tensor(firstDimension, otherDimensions...),
|
||||||
IndexNames{indexNames.begin(), indexNames.end()}, Name_{Name}, DefaultIndexNames_{indexNames}
|
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");
|
HADRONS_ERROR(Argument, "NamedTensor: dimensions != tensor rank");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user