![]() |
|
Macros | |
#define | EIGEN_USE_THREADS |
#define | EIGEN_DONT_VECTORIZE 0 |
#define | VECTORIZABLE(T, VAL) !EIGEN_DONT_VECTORIZE&& Eigen::internal::packet_traits<T>::Vectorizable&& VAL |
#define | CALL_SUBTEST_PART(PART) CALL_SUBTEST_##PART |
#define | CALL_SUBTEST_COMBINATIONS(PART, NAME, T, NUM_DIMS) |
#define | CALL_ASYNC_SUBTEST_COMBINATIONS(PART, NAME, T, NUM_DIMS) |
Functions | |
template<typename Dst , typename Expr > | |
void | DefaultAssign (Dst &dst, Expr expr) |
template<bool Vectorizable, TiledEvaluation Tiling, typename Device , typename Dst , typename Expr > | |
void | DeviceAssign (Device &d, Dst &dst, Expr expr) |
template<int NumDims> | |
static array< Index, NumDims > | RandomDims (int min_dim=1, int max_dim=20) |
template<typename T , int NumDims, typename Device , bool Vectorizable, TiledEvaluation Tiling, int Layout> | |
void | test_execute_unary_expr (Device d) |
template<typename T , int NumDims, typename Device , bool Vectorizable, TiledEvaluation Tiling, int Layout> | |
void | test_execute_binary_expr (Device d) |
template<typename T , int NumDims, typename Device , bool Vectorizable, TiledEvaluation Tiling, int Layout> | |
void | test_execute_broadcasting (Device d) |
template<typename T , int NumDims, typename Device , bool Vectorizable, TiledEvaluation Tiling, int Layout> | |
void | test_execute_chipping_rvalue (Device d) |
template<typename T , int NumDims, typename Device , bool Vectorizable, TiledEvaluation Tiling, int Layout> | |
void | test_execute_chipping_lvalue (Device d) |
template<typename T , int NumDims, typename Device , bool Vectorizable, TiledEvaluation Tiling, int Layout> | |
void | test_execute_shuffle_rvalue (Device d) |
template<typename T , int NumDims, typename Device , bool Vectorizable, TiledEvaluation Tiling, int Layout> | |
void | test_execute_shuffle_lvalue (Device d) |
template<typename T , int NumDims, typename Device , bool Vectorizable, TiledEvaluation Tiling, int Layout> | |
void | test_execute_reshape (Device d) |
template<typename T , int NumDims, typename Device , bool Vectorizable, TiledEvaluation Tiling, int Layout> | |
void | test_execute_slice_rvalue (Device d) |
template<typename T , int NumDims, typename Device , bool Vectorizable, TiledEvaluation Tiling, int Layout> | |
void | test_execute_slice_lvalue (Device d) |
template<typename T , int NumDims, typename Device , bool Vectorizable, TiledEvaluation Tiling, int Layout> | |
void | test_execute_broadcasting_of_forced_eval (Device d) |
template<typename T , int NumDims, typename Device , bool Vectorizable, TiledEvaluation Tiling, int Layout> | |
void | test_execute_generator_op (Device d) |
template<typename T , int NumDims, typename Device , bool Vectorizable, TiledEvaluation Tiling, int Layout> | |
void | test_execute_reverse_rvalue (Device d) |
template<typename T , int NumDims, typename Device , bool Vectorizable, TiledEvaluation Tiling, int Layout> | |
void | test_async_execute_unary_expr (Device d) |
template<typename T , int NumDims, typename Device , bool Vectorizable, TiledEvaluation Tiling, int Layout> | |
void | test_async_execute_binary_expr (Device d) |
EIGEN_DECLARE_TEST (cxx11_tensor_executor) | |
#define CALL_ASYNC_SUBTEST_COMBINATIONS | ( | PART, | |
NAME, | |||
T, | |||
NUM_DIMS | |||
) |
#define CALL_SUBTEST_COMBINATIONS | ( | PART, | |
NAME, | |||
T, | |||
NUM_DIMS | |||
) |
#define CALL_SUBTEST_PART | ( | PART | ) | CALL_SUBTEST_##PART |
#define EIGEN_DONT_VECTORIZE 0 |
#define EIGEN_USE_THREADS |
#define VECTORIZABLE | ( | T, | |
VAL | |||
) | !EIGEN_DONT_VECTORIZE&& Eigen::internal::packet_traits<T>::Vectorizable&& VAL |
void DefaultAssign | ( | Dst & | dst, |
Expr | expr | ||
) |
References Eigen::internal::Off, and run().
Referenced by test_execute_shuffle_lvalue(), and test_execute_shuffle_rvalue().
void DeviceAssign | ( | Device & | d, |
Dst & | dst, | ||
Expr | expr | ||
) |
References run().
EIGEN_DECLARE_TEST | ( | cxx11_tensor_executor | ) |
References CALL_ASYNC_SUBTEST_COMBINATIONS, CALL_SUBTEST_COMBINATIONS, EIGEN_UNUSED_VARIABLE, test_async_execute_binary_expr(), test_async_execute_unary_expr(), test_execute_binary_expr(), test_execute_broadcasting(), test_execute_broadcasting_of_forced_eval(), test_execute_chipping_lvalue(), test_execute_chipping_rvalue(), test_execute_generator_op(), test_execute_reshape(), test_execute_reverse_rvalue(), test_execute_shuffle_lvalue(), test_execute_shuffle_rvalue(), test_execute_slice_lvalue(), test_execute_slice_rvalue(), and test_execute_unary_expr().
|
static |
References i.
void test_async_execute_binary_expr | ( | Device | d | ) |
References Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeff(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::dimensions(), i, Eigen::Barrier::Notify(), Eigen::TensorBase< Derived, AccessLevel >::setRandom(), VERIFY_IS_EQUAL, and Eigen::Barrier::Wait().
Referenced by EIGEN_DECLARE_TEST().
void test_async_execute_unary_expr | ( | Device | d | ) |
References Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeff(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::dimensions(), i, Eigen::Barrier::Notify(), Eigen::TensorBase< Derived, AccessLevel >::setRandom(), Eigen::square(), VERIFY_IS_EQUAL, and Eigen::Barrier::Wait().
Referenced by EIGEN_DECLARE_TEST().
void test_execute_binary_expr | ( | Device | d | ) |
void test_execute_broadcasting | ( | Device | d | ) |
References Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeff(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::dimensions(), i, run(), Eigen::TensorBase< Derived, AccessLevel >::setRandom(), and VERIFY_IS_EQUAL.
Referenced by EIGEN_DECLARE_TEST().
void test_execute_broadcasting_of_forced_eval | ( | Device | d | ) |
void test_execute_chipping_lvalue | ( | Device | d | ) |
void test_execute_chipping_rvalue | ( | Device | d | ) |
void test_execute_generator_op | ( | Device | d | ) |
References Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeff(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::dimensions(), i, run(), Eigen::TensorBase< Derived, AccessLevel >::setRandom(), and VERIFY_IS_EQUAL.
Referenced by EIGEN_DECLARE_TEST().
void test_execute_reshape | ( | Device | d | ) |
References Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeff(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::dimensions(), i, Eigen::TensorBase< Derived, AccessLevel >::reshape(), run(), Eigen::TensorBase< Derived, AccessLevel >::setRandom(), Eigen::internal::shuffle(), and VERIFY_IS_EQUAL.
Referenced by EIGEN_DECLARE_TEST().
void test_execute_reverse_rvalue | ( | Device | d | ) |
References Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeff(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::dimensions(), i, Eigen::bfloat16_impl::pow(), reverse(), Eigen::TensorBase< Derived, AccessLevel >::reverse(), run(), Eigen::TensorBase< Derived, AccessLevel >::setRandom(), and VERIFY_IS_EQUAL.
Referenced by EIGEN_DECLARE_TEST().
void test_execute_shuffle_lvalue | ( | Device | d | ) |
References Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeff(), DefaultAssign(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::dimensions(), i, Eigen::TensorBase< Derived, AccessLevel >::setRandom(), Eigen::internal::shuffle(), Eigen::TensorBase< Derived, AccessLevel >::shuffle(), and VERIFY_IS_EQUAL.
Referenced by EIGEN_DECLARE_TEST().
void test_execute_shuffle_rvalue | ( | Device | d | ) |
References Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeff(), DefaultAssign(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::dimensions(), i, Eigen::TensorBase< Derived, AccessLevel >::setRandom(), Eigen::internal::shuffle(), Eigen::TensorBase< Derived, AccessLevel >::shuffle(), and VERIFY_IS_EQUAL.
Referenced by EIGEN_DECLARE_TEST().
void test_execute_slice_lvalue | ( | Device | d | ) |
References Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeff(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::dimensions(), i, Eigen::numext::mini(), run(), Eigen::TensorBase< Derived, AccessLevel >::setRandom(), Eigen::TensorBase< Derived, AccessLevel >::slice(), and VERIFY_IS_EQUAL.
Referenced by EIGEN_DECLARE_TEST().
void test_execute_slice_rvalue | ( | Device | d | ) |
References Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeff(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::dimensions(), i, Eigen::numext::mini(), run(), Eigen::TensorBase< Derived, AccessLevel >::setRandom(), Eigen::TensorBase< Derived, AccessLevel >::slice(), and VERIFY_IS_EQUAL.
Referenced by EIGEN_DECLARE_TEST().
void test_execute_unary_expr | ( | Device | d | ) |