mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +08:00
Fix taking address of rvalue compiler issue with TensorFlow (plus other warnings).
This commit is contained in:
parent
2b1dfd1ba0
commit
06c2760bd1
@ -493,21 +493,21 @@ struct dhs_cpack {
|
||||
cblock.packet[1] = lhs.template loadPacket<PacketC>(i, j + 2);
|
||||
}
|
||||
} else {
|
||||
const std::complex<Scalar> *lhs0, *lhs1;
|
||||
std::complex<Scalar> lhs0, lhs1;
|
||||
if (UseLhs) {
|
||||
lhs0 = &lhs(j + 0, i);
|
||||
lhs1 = &lhs(j + 1, i);
|
||||
cblock.packet[0] = pload2(lhs0, lhs1);
|
||||
lhs0 = &lhs(j + 2, i);
|
||||
lhs1 = &lhs(j + 3, i);
|
||||
cblock.packet[1] = pload2(lhs0, lhs1);
|
||||
lhs0 = lhs(j + 0, i);
|
||||
lhs1 = lhs(j + 1, i);
|
||||
cblock.packet[0] = pload2(&lhs0, &lhs1);
|
||||
lhs0 = lhs(j + 2, i);
|
||||
lhs1 = lhs(j + 3, i);
|
||||
cblock.packet[1] = pload2(&lhs0, &lhs1);
|
||||
} else {
|
||||
lhs0 = &lhs(i, j + 0);
|
||||
lhs1 = &lhs(i, j + 1);
|
||||
cblock.packet[0] = pload2(lhs0, lhs1);
|
||||
lhs0 = &lhs(i, j + 2);
|
||||
lhs1 = &lhs(i, j + 3);
|
||||
cblock.packet[1] = pload2(lhs0, lhs1);
|
||||
lhs0 = lhs(i, j + 0);
|
||||
lhs1 = lhs(i, j + 1);
|
||||
cblock.packet[0] = pload2(&lhs0, &lhs1);
|
||||
lhs0 = lhs(i, j + 2);
|
||||
lhs1 = lhs(i, j + 3);
|
||||
cblock.packet[1] = pload2(&lhs0, &lhs1);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -99,11 +99,9 @@ EIGEN_STRONG_INLINE void pgerMMA(__vector_quad* acc, const __vector_pair& a, con
|
||||
}
|
||||
|
||||
template<typename LhsPacket, typename RhsPacket, bool NegativeAccumulate>
|
||||
EIGEN_STRONG_INLINE void pgerMMA(__vector_quad* acc, const __vector_pair& a, const Packet4f& b)
|
||||
EIGEN_STRONG_INLINE void pgerMMA(__vector_quad*, const __vector_pair&, const Packet4f&)
|
||||
{
|
||||
EIGEN_UNUSED_VARIABLE(acc); // Just for compilation
|
||||
EIGEN_UNUSED_VARIABLE(a);
|
||||
EIGEN_UNUSED_VARIABLE(b);
|
||||
// Just for compilation
|
||||
}
|
||||
|
||||
template<typename Scalar, typename Packet, typename RhsPacket, bool ConjugateLhs, bool ConjugateRhs, bool LhsIsReal, bool RhsIsReal>
|
||||
@ -150,11 +148,9 @@ EIGEN_STRONG_INLINE void ploadRhsMMA<double, __vector_pair>(const double* rhs, _
|
||||
}
|
||||
|
||||
template<>
|
||||
EIGEN_STRONG_INLINE void ploadRhsMMA(const float* rhs, __vector_pair& rhsV)
|
||||
EIGEN_STRONG_INLINE void ploadRhsMMA(const float*, __vector_pair&)
|
||||
{
|
||||
// Just for compilation
|
||||
EIGEN_UNUSED_VARIABLE(rhs);
|
||||
EIGEN_UNUSED_VARIABLE(rhsV);
|
||||
}
|
||||
|
||||
// PEEL_MMA loop factor.
|
||||
|
Loading…
Reference in New Issue
Block a user