// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2014 Benoit Steiner <benoit.steiner.goog@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
namespace internal { template <typename Device, typename CoeffReturnType> struct non_integral_type_placement_new{ template <typename StorageType>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE voidoperator()(Index numValues, StorageType m_buffer) { // Initialize non-trivially constructible types. if (!internal::is_arithmetic<CoeffReturnType>::value) { for (Index i = 0; i < numValues; ++i) new (m_buffer + i) CoeffReturnType();
}
}
};
// SYCL does not support non-integral types // having new (m_buffer + i) CoeffReturnType() causes the following compiler error for SYCL Devices // no matching function for call to 'operator new' template <typename CoeffReturnType> struct non_integral_type_placement_new<Eigen::SyclDevice, CoeffReturnType> { template <typename StorageType>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE voidoperator()(Index, StorageType) {
}
};
} // end namespace internal
#ifdef EIGEN_USE_SYCL // binding placeholder accessors to a command group handler for SYCL
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void bind(cl::sycl::handler &cgh) const {
m_buffer.bind(cgh);
m_impl.bind(cgh);
} #endif private:
TensorEvaluator<ArgType, Device> m_impl; const ArgType m_op; const Device EIGEN_DEVICE_REF m_device;
EvaluatorPointerType m_buffer;
};
} // end namespace Eigen
#endif// EIGEN_CXX11_TENSOR_TENSOR_FORCED_EVAL_H
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.10Bemerkung:
(vorverarbeitet am 2026-06-06)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.