mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-04 09:44:06 +08:00
Fixed compilation error when sycl is enabled.
This commit is contained in:
parent
c1b3d5ecb6
commit
bc050ea9f0
@ -97,9 +97,13 @@ struct TensorEvaluator<const TensorGeneratorOp<Generator, ArgType>, Device>
|
||||
};
|
||||
|
||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorEvaluator(const XprType& op, const Device& device)
|
||||
: m_generator(op.generator()), m_argImpl(op.expression(), device)
|
||||
: m_generator(op.generator())
|
||||
#ifdef EIGEN_USE_SYCL
|
||||
, m_argImpl(op.expression(), device)
|
||||
#endif
|
||||
{
|
||||
m_dimensions = m_argImpl.dimensions();
|
||||
TensorEvaluator<ArgType, Device> argImpl(op.expression(), device);
|
||||
m_dimensions = argImpl.dimensions();
|
||||
|
||||
if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
|
||||
m_strides[0] = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user