mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Get rid of EIGEN_TEST_FUNC, unit tests must now be declared with EIGEN_DECLARE_TEST(mytest) { /* code */ }.
This provide several advantages: - more flexibility in designing unit tests - unit tests can be glued to speed up compilation - unit tests are compiled with same predefined macros, which is a requirement for zapcc
This commit is contained in:
@@ -117,7 +117,7 @@ class LevenbergMarquardt : internal::no_assignment_operator
|
||||
typedef typename JacobianType::RealScalar RealScalar;
|
||||
typedef typename QRSolver::StorageIndex PermIndex;
|
||||
typedef Matrix<Scalar,Dynamic,1> FVectorType;
|
||||
typedef PermutationMatrix<Dynamic,Dynamic> PermutationType;
|
||||
typedef PermutationMatrix<Dynamic,Dynamic,int> PermutationType;
|
||||
public:
|
||||
LevenbergMarquardt(FunctorType& functor)
|
||||
: m_functor(functor),m_nfev(0),m_njev(0),m_fnorm(0.0),m_gnorm(0),
|
||||
|
||||
@@ -192,7 +192,7 @@ struct TreeTest
|
||||
};
|
||||
|
||||
|
||||
void test_BVH()
|
||||
EIGEN_DECLARE_TEST(BVH)
|
||||
{
|
||||
for(int i = 0; i < g_repeat; i++) {
|
||||
#ifdef EIGEN_TEST_PART_1
|
||||
|
||||
@@ -272,7 +272,7 @@ template<typename Scalar> void eulerangles_rand()
|
||||
check_all_var(ea);
|
||||
}
|
||||
|
||||
void test_EulerAngles()
|
||||
EIGEN_DECLARE_TEST(EulerAngles)
|
||||
{
|
||||
// Simple cast test
|
||||
EulerAnglesXYZd onesEd(1, 1, 1);
|
||||
|
||||
@@ -225,7 +225,7 @@ void test_return_by_value(int len)
|
||||
VERIFY( (in1-in).norm() < test_precision<float>() );
|
||||
}
|
||||
|
||||
void test_FFTW()
|
||||
EIGEN_DECLARE_TEST(FFTW)
|
||||
{
|
||||
CALL_SUBTEST( test_return_by_value(32) );
|
||||
//CALL_SUBTEST( ( test_complex2d<float,4,8> () ) ); CALL_SUBTEST( ( test_complex2d<double,4,8> () ) );
|
||||
|
||||
@@ -1818,7 +1818,7 @@ void testNistEckerle4(void)
|
||||
VERIFY_IS_APPROX(x[2], 4.5154121844E+02);
|
||||
}
|
||||
|
||||
void test_NonLinearOptimization()
|
||||
EIGEN_DECLARE_TEST(NonLinearOptimization)
|
||||
{
|
||||
// Tests using the examples provided by (c)minpack
|
||||
CALL_SUBTEST/*_1*/(testChkder());
|
||||
|
||||
@@ -107,7 +107,7 @@ void test_central()
|
||||
VERIFY_IS_APPROX(jac, actual_jac);
|
||||
}
|
||||
|
||||
void test_NumericalDiff()
|
||||
EIGEN_DECLARE_TEST(NumericalDiff)
|
||||
{
|
||||
CALL_SUBTEST(test_forward());
|
||||
CALL_SUBTEST(test_central());
|
||||
|
||||
@@ -76,7 +76,7 @@ void alignedvector3()
|
||||
VERIFY(ss1.str()==ss2.str());
|
||||
}
|
||||
|
||||
void test_alignedvector3()
|
||||
EIGEN_DECLARE_TEST(alignedvector3)
|
||||
{
|
||||
for(int i = 0; i < g_repeat; i++) {
|
||||
CALL_SUBTEST( alignedvector3<float>() );
|
||||
|
||||
@@ -354,7 +354,7 @@ double bug_1264() {
|
||||
|
||||
#endif
|
||||
|
||||
void test_autodiff()
|
||||
EIGEN_DECLARE_TEST(autodiff)
|
||||
{
|
||||
for(int i = 0; i < g_repeat; i++) {
|
||||
CALL_SUBTEST_1( test_autodiff_scalar<1>() );
|
||||
|
||||
@@ -89,7 +89,7 @@ void check_limits_specialization()
|
||||
#endif
|
||||
}
|
||||
|
||||
void test_autodiff_scalar()
|
||||
EIGEN_DECLARE_TEST(autodiff_scalar)
|
||||
{
|
||||
for(int i = 0; i < g_repeat; i++) {
|
||||
CALL_SUBTEST_1( check_atan2<float>() );
|
||||
|
||||
@@ -135,7 +135,7 @@ static void test_stress_eventcount()
|
||||
}
|
||||
}
|
||||
|
||||
void test_cxx11_eventcount()
|
||||
EIGEN_DECLARE_TEST(cxx11_eventcount)
|
||||
{
|
||||
CALL_SUBTEST(test_basic_eventcount());
|
||||
CALL_SUBTEST(test_stress_eventcount());
|
||||
|
||||
@@ -340,7 +340,7 @@ static void test_array_misc()
|
||||
VERIFY_IS_EQUAL((instantiate_by_c_array<dummy_inst, int, 5>(data).c), 5);
|
||||
}
|
||||
|
||||
void test_cxx11_meta()
|
||||
EIGEN_DECLARE_TEST(cxx11_meta)
|
||||
{
|
||||
CALL_SUBTEST(test_gen_numeric_list());
|
||||
CALL_SUBTEST(test_concat());
|
||||
|
||||
@@ -116,7 +116,7 @@ static void test_cancel()
|
||||
tp.Cancel();
|
||||
}
|
||||
|
||||
void test_cxx11_non_blocking_thread_pool()
|
||||
EIGEN_DECLARE_TEST(cxx11_non_blocking_thread_pool)
|
||||
{
|
||||
CALL_SUBTEST(test_create_destroy_empty_pool());
|
||||
CALL_SUBTEST(test_parallelism(true));
|
||||
|
||||
@@ -227,7 +227,7 @@ void test_stress_runqueue()
|
||||
VERIFY(total.load() == 0);
|
||||
}
|
||||
|
||||
void test_cxx11_runqueue()
|
||||
EIGEN_DECLARE_TEST(cxx11_runqueue)
|
||||
{
|
||||
CALL_SUBTEST_1(test_basic_runqueue());
|
||||
CALL_SUBTEST_2(test_empty_runqueue());
|
||||
|
||||
@@ -273,7 +273,7 @@ static void test_argmin_dim()
|
||||
}
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_argmax()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_argmax)
|
||||
{
|
||||
CALL_SUBTEST(test_simple_index_tuples<RowMajor>());
|
||||
CALL_SUBTEST(test_simple_index_tuples<ColMajor>());
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_gpu
|
||||
|
||||
#define EIGEN_USE_GPU
|
||||
|
||||
#include "main.h"
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_argmax_sycl
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t
|
||||
#define EIGEN_USE_SYCL
|
||||
|
||||
@@ -237,7 +237,7 @@ template<typename DataType, typename Device_Selector> void sycl_argmax_test_per_
|
||||
test_sycl_argmin_dim<DataType, RowMajor, int64_t>(sycl_device);
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_argmax_sycl() {
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_argmax_sycl) {
|
||||
for (const auto& device :Eigen::get_sycl_supported_devices()) {
|
||||
CALL_SUBTEST(sycl_argmax_test_per_device<double>(device));
|
||||
}
|
||||
|
||||
@@ -358,7 +358,7 @@ static void test_std_initializers_tensor() {
|
||||
#endif // EIGEN_HAS_VARIADIC_TEMPLATES
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_assign()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_assign)
|
||||
{
|
||||
CALL_SUBTEST(test_1d());
|
||||
CALL_SUBTEST(test_2d());
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_broadcast_sycl
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t
|
||||
#define EIGEN_USE_SYCL
|
||||
|
||||
@@ -137,7 +137,7 @@ template<typename DataType> void sycl_broadcast_test_per_device(const cl::sycl::
|
||||
test_broadcast_sycl_fixed<DataType, ColMajor, int64_t>(sycl_device);
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_broadcast_sycl() {
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_broadcast_sycl) {
|
||||
for (const auto& device :Eigen::get_sycl_supported_devices()) {
|
||||
CALL_SUBTEST(sycl_broadcast_test_per_device<float>(device));
|
||||
}
|
||||
|
||||
@@ -292,7 +292,7 @@ static void test_simple_broadcasting_one_by_n_by_one_2d()
|
||||
}
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_broadcasting()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_broadcasting)
|
||||
{
|
||||
CALL_SUBTEST(test_simple_broadcasting<ColMajor>());
|
||||
CALL_SUBTEST(test_simple_broadcasting<RowMajor>());
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_builtins_sycl
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t
|
||||
#define EIGEN_USE_SYCL
|
||||
|
||||
@@ -257,7 +257,7 @@ static void test_builtin_binary_sycl(const Eigen::SyclDevice &sycl_device) {
|
||||
TEST_BINARY_BUILTINS_OPERATORS_THAT_TAKES_SCALAR(int, %, ColMajor)
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_builtins_sycl() {
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_builtins_sycl) {
|
||||
for (const auto& device :Eigen::get_sycl_supported_devices()) {
|
||||
QueueInterface queueInterface(device);
|
||||
Eigen::SyclDevice sycl_device(&queueInterface);
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_cast_float16_gpu
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int
|
||||
#define EIGEN_USE_GPU
|
||||
|
||||
|
||||
@@ -105,7 +105,7 @@ static void test_small_to_big_type_cast()
|
||||
}
|
||||
|
||||
|
||||
void test_cxx11_tensor_casts()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_casts)
|
||||
{
|
||||
CALL_SUBTEST(test_simple_cast());
|
||||
CALL_SUBTEST(test_vectorized_cast());
|
||||
|
||||
@@ -410,7 +410,7 @@ static void test_chip_raw_data_row_major()
|
||||
VERIFY_IS_EQUAL(chip4.data(), static_cast<float*>(0));
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_chipping()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_chipping)
|
||||
{
|
||||
CALL_SUBTEST(test_simple_chip<ColMajor>());
|
||||
CALL_SUBTEST(test_simple_chip<RowMajor>());
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_chipping_sycl
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t
|
||||
#define EIGEN_USE_SYCL
|
||||
|
||||
@@ -614,7 +614,7 @@ template<typename DataType, typename dev_Selector> void sycl_chipping_test_per_d
|
||||
test_chip_as_lvalue_sycl<DataType, RowMajor, int64_t>(sycl_device);
|
||||
test_chip_as_lvalue_sycl<DataType, ColMajor, int64_t>(sycl_device);
|
||||
}
|
||||
void test_cxx11_tensor_chipping_sycl()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_chipping_sycl)
|
||||
{
|
||||
for (const auto& device :Eigen::get_sycl_supported_devices()) {
|
||||
CALL_SUBTEST(sycl_chipping_test_per_device<float>(device));
|
||||
|
||||
@@ -77,7 +77,7 @@ static void test_equality()
|
||||
}
|
||||
|
||||
|
||||
void test_cxx11_tensor_comparisons()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_comparisons)
|
||||
{
|
||||
CALL_SUBTEST(test_orderings());
|
||||
CALL_SUBTEST(test_equality());
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_complex_cwise_ops
|
||||
|
||||
#define EIGEN_USE_GPU
|
||||
|
||||
#include "main.h"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_complex
|
||||
|
||||
#define EIGEN_USE_GPU
|
||||
|
||||
#include "main.h"
|
||||
|
||||
@@ -123,7 +123,7 @@ static void test_concatenation_as_lvalue()
|
||||
}
|
||||
|
||||
|
||||
void test_cxx11_tensor_concatenation()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_concatenation)
|
||||
{
|
||||
CALL_SUBTEST(test_dimension_failures<ColMajor>());
|
||||
CALL_SUBTEST(test_dimension_failures<RowMajor>());
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_concatenation_sycl
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t
|
||||
#define EIGEN_USE_SYCL
|
||||
|
||||
@@ -173,7 +173,7 @@ template <typename DataType, typename Dev_selector> void tensorConcat_perDevice(
|
||||
test_simple_concatenation<DataType, ColMajor, int64_t>(sycl_device);
|
||||
test_concatenation_as_lvalue<DataType, ColMajor, int64_t>(sycl_device);
|
||||
}
|
||||
void test_cxx11_tensor_concatenation_sycl() {
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_concatenation_sycl) {
|
||||
for (const auto& device :Eigen::get_sycl_supported_devices()) {
|
||||
CALL_SUBTEST(tensorConcat_perDevice<float>(device));
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ static void test_assign_of_const_tensor()
|
||||
}
|
||||
|
||||
|
||||
void test_cxx11_tensor_const()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_const)
|
||||
{
|
||||
CALL_SUBTEST(test_simple_assign());
|
||||
CALL_SUBTEST(test_assign_of_const_tensor());
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_gpu
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int
|
||||
#define EIGEN_USE_GPU
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_contract_sycl
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t
|
||||
#define EIGEN_USE_SYCL
|
||||
|
||||
@@ -283,7 +283,7 @@ template <typename Dev_selector> void tensorContractionPerDevice(Dev_selector& s
|
||||
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_contract_sycl() {
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_contract_sycl) {
|
||||
for (const auto& device :Eigen::get_sycl_supported_devices()) {
|
||||
CALL_SUBTEST(tensorContractionPerDevice(device));
|
||||
}
|
||||
|
||||
@@ -559,7 +559,7 @@ static void test_large_contraction_with_output_kernel() {
|
||||
}
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_contraction()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_contraction)
|
||||
{
|
||||
CALL_SUBTEST(test_evals<ColMajor>());
|
||||
CALL_SUBTEST(test_evals<RowMajor>());
|
||||
|
||||
@@ -136,7 +136,7 @@ static void test_strides() {
|
||||
input(12)*kernel(2)));
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_convolution()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_convolution)
|
||||
{
|
||||
CALL_SUBTEST(test_evals<ColMajor>());
|
||||
CALL_SUBTEST(test_evals<RowMajor>());
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_convolution_sycl
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t
|
||||
#define EIGEN_USE_SYCL
|
||||
|
||||
@@ -462,7 +462,7 @@ template <typename Dev_selector> void tensorConvolutionPerDevice(Dev_selector& s
|
||||
test_strides<float, RowMajor, int64_t>(sycl_device);
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_convolution_sycl() {
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_convolution_sycl) {
|
||||
for (const auto& device :Eigen::get_sycl_supported_devices()) {
|
||||
CALL_SUBTEST(tensorConvolutionPerDevice(device));
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ static void test_sizes_as_index()
|
||||
}
|
||||
|
||||
|
||||
void test_cxx11_tensor_custom_index() {
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_custom_index) {
|
||||
test_map_as_index<ColMajor>();
|
||||
test_map_as_index<RowMajor>();
|
||||
test_matrix_as_index<ColMajor>();
|
||||
|
||||
@@ -104,7 +104,7 @@ static void test_custom_binary_op()
|
||||
}
|
||||
|
||||
|
||||
void test_cxx11_tensor_custom_op()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_custom_op)
|
||||
{
|
||||
CALL_SUBTEST(test_custom_unary_op());
|
||||
CALL_SUBTEST(test_custom_binary_op());
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_custom_op_sycl
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t
|
||||
#define EIGEN_USE_SYCL
|
||||
|
||||
@@ -158,7 +158,7 @@ template <typename DataType, typename Dev_selector> void custom_op_perDevice(Dev
|
||||
test_custom_binary_op_sycl<DataType, RowMajor, int64_t>(sycl_device);
|
||||
|
||||
}
|
||||
void test_cxx11_tensor_custom_op_sycl() {
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_custom_op_sycl) {
|
||||
for (const auto& device :Eigen::get_sycl_supported_devices()) {
|
||||
CALL_SUBTEST(custom_op_perDevice<float>(device));
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_device
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int
|
||||
#define EIGEN_USE_GPU
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_device_sycl
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t
|
||||
#define EIGEN_USE_SYCL
|
||||
|
||||
@@ -70,7 +70,7 @@ template<typename DataType> void sycl_device_test_per_device(const cl::sycl::dev
|
||||
//test_device_exceptions<DataType, ColMajor>(sycl_device);
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_device_sycl() {
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_device_sycl) {
|
||||
for (const auto& device :Eigen::get_sycl_supported_devices()) {
|
||||
CALL_SUBTEST(sycl_device_test_per_device<float>(device));
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ static void test_rank_zero()
|
||||
VERIFY_IS_EQUAL((int)dscalar.rank(), 0);
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_dimension()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_dimension)
|
||||
{
|
||||
CALL_SUBTEST(test_dynamic_size());
|
||||
CALL_SUBTEST(test_fixed_size());
|
||||
|
||||
@@ -33,7 +33,7 @@ static void test_empty_fixed_size_tensor()
|
||||
}
|
||||
|
||||
|
||||
void test_cxx11_tensor_empty()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_empty)
|
||||
{
|
||||
CALL_SUBTEST(test_empty_tensor());
|
||||
CALL_SUBTEST(test_empty_fixed_size_tensor());
|
||||
|
||||
@@ -366,7 +366,7 @@ static void test_minmax_nan_propagation()
|
||||
test_minmax_nan_propagation_templ<double>();
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_expr()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_expr)
|
||||
{
|
||||
CALL_SUBTEST(test_1d());
|
||||
CALL_SUBTEST(test_2d());
|
||||
|
||||
@@ -253,7 +253,7 @@ static void test_fft_non_power_of_2_round_trip(int exponent) {
|
||||
}
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_fft() {
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_fft) {
|
||||
test_fft_complex_input_golden();
|
||||
test_fft_real_input_golden();
|
||||
|
||||
|
||||
@@ -250,7 +250,7 @@ static void test_array()
|
||||
}
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_fixed_size()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_fixed_size)
|
||||
{
|
||||
CALL_SUBTEST(test_0d());
|
||||
CALL_SUBTEST(test_1d());
|
||||
|
||||
@@ -72,7 +72,7 @@ static void test_const()
|
||||
}
|
||||
|
||||
|
||||
void test_cxx11_tensor_forced_eval()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_forced_eval)
|
||||
{
|
||||
CALL_SUBTEST(test_simple());
|
||||
CALL_SUBTEST(test_const());
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_forced_eval_sycl
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t
|
||||
#define EIGEN_USE_SYCL
|
||||
|
||||
@@ -69,7 +69,7 @@ template <typename DataType, typename Dev_selector> void tensorForced_evalperDev
|
||||
test_forced_eval_sycl<DataType, RowMajor, int64_t>(sycl_device);
|
||||
test_forced_eval_sycl<DataType, ColMajor, int64_t>(sycl_device);
|
||||
}
|
||||
void test_cxx11_tensor_forced_eval_sycl() {
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_forced_eval_sycl) {
|
||||
for (const auto& device :Eigen::get_sycl_supported_devices()) {
|
||||
CALL_SUBTEST(tensorForced_evalperDevice<float>(device));
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ static void test_gaussian()
|
||||
}
|
||||
|
||||
|
||||
void test_cxx11_tensor_generator()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_generator)
|
||||
{
|
||||
CALL_SUBTEST(test_1D<ColMajor>());
|
||||
CALL_SUBTEST(test_1D<RowMajor>());
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_generator_sycl
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t
|
||||
#define EIGEN_USE_SYCL
|
||||
static const float error_threshold =1e-8f;
|
||||
@@ -139,7 +139,7 @@ template<typename DataType, typename dev_Selector> void sycl_generator_test_per_
|
||||
test_gaussian_sycl<DataType, RowMajor, int64_t>(sycl_device);
|
||||
test_gaussian_sycl<DataType, ColMajor, int64_t>(sycl_device);
|
||||
}
|
||||
void test_cxx11_tensor_generator_sycl()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_generator_sycl)
|
||||
{
|
||||
for (const auto& device :Eigen::get_sycl_supported_devices()) {
|
||||
CALL_SUBTEST(sycl_generator_test_per_device<float>(device));
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_gpu
|
||||
|
||||
#define EIGEN_USE_GPU
|
||||
|
||||
#include "main.h"
|
||||
|
||||
@@ -131,7 +131,7 @@ static void test_sub_fft_ifft_invariant(int dim0, int dim1, int dim2, int dim3)
|
||||
}
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_ifft() {
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_ifft) {
|
||||
CALL_SUBTEST(test_1D_fft_ifft_invariant<ColMajor>(4));
|
||||
CALL_SUBTEST(test_1D_fft_ifft_invariant<ColMajor>(16));
|
||||
CALL_SUBTEST(test_1D_fft_ifft_invariant<ColMajor>(32));
|
||||
|
||||
@@ -797,7 +797,7 @@ void test_imagenet_patches()
|
||||
}
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_image_patch()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_image_patch)
|
||||
{
|
||||
CALL_SUBTEST_1(test_simple_patch());
|
||||
CALL_SUBTEST_2(test_patch_no_extra_dim());
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_image_patch_sycl
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t
|
||||
#define EIGEN_USE_SYCL
|
||||
|
||||
@@ -1084,7 +1084,7 @@ test_patch_padding_same_sycl<DataType, int64_t>(sycl_device);
|
||||
test_patch_no_extra_dim_sycl<DataType, int64_t>(sycl_device);
|
||||
test_imagenet_patches_sycl<DataType, int64_t>(sycl_device);
|
||||
}
|
||||
void test_cxx11_tensor_image_patch_sycl()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_image_patch_sycl)
|
||||
{
|
||||
for (const auto& device :Eigen::get_sycl_supported_devices()) {
|
||||
CALL_SUBTEST(sycl_tensor_image_patch_test_per_device<float>(device));
|
||||
|
||||
@@ -373,7 +373,7 @@ static void test_dim_check()
|
||||
|
||||
#endif
|
||||
|
||||
void test_cxx11_tensor_index_list()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_index_list)
|
||||
{
|
||||
#ifdef EIGEN_HAS_INDEX_LIST
|
||||
CALL_SUBTEST(test_static_index_list());
|
||||
|
||||
@@ -74,7 +74,7 @@ static void test_simple_inflation()
|
||||
}
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_inflation()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_inflation)
|
||||
{
|
||||
CALL_SUBTEST(test_simple_inflation<ColMajor>());
|
||||
CALL_SUBTEST(test_simple_inflation<RowMajor>());
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_inflation_sycl
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t
|
||||
#define EIGEN_USE_SYCL
|
||||
|
||||
@@ -128,7 +128,7 @@ template<typename DataType, typename dev_Selector> void sycl_inflation_test_per_
|
||||
test_simple_inflation_sycl<DataType, RowMajor, int64_t>(sycl_device);
|
||||
test_simple_inflation_sycl<DataType, ColMajor, int64_t>(sycl_device);
|
||||
}
|
||||
void test_cxx11_tensor_inflation_sycl()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_inflation_sycl)
|
||||
{
|
||||
for (const auto& device :Eigen::get_sycl_supported_devices()) {
|
||||
CALL_SUBTEST(sycl_inflation_test_per_device<float>(device));
|
||||
|
||||
@@ -135,7 +135,7 @@ void test_specific() {
|
||||
VERIFY_IS_EQUAL(result, result_op);
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_intdiv()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_intdiv)
|
||||
{
|
||||
CALL_SUBTEST_1(test_signed_32bit());
|
||||
CALL_SUBTEST_2(test_unsigned_32bit());
|
||||
|
||||
@@ -119,7 +119,7 @@ static void test_output_const()
|
||||
}
|
||||
|
||||
|
||||
void test_cxx11_tensor_io()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_io)
|
||||
{
|
||||
CALL_SUBTEST(test_output_0d<ColMajor>());
|
||||
CALL_SUBTEST(test_output_0d<RowMajor>());
|
||||
|
||||
@@ -54,7 +54,7 @@ static void test_swap_as_lvalue()
|
||||
}
|
||||
|
||||
|
||||
void test_cxx11_tensor_layout_swap()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_layout_swap)
|
||||
{
|
||||
CALL_SUBTEST(test_simple_swap());
|
||||
CALL_SUBTEST(test_swap_as_lvalue());
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_layout_swap_sycl
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t
|
||||
#define EIGEN_USE_SYCL
|
||||
|
||||
@@ -118,7 +118,7 @@ template<typename DataType, typename dev_Selector> void sycl_tensor_layout_swap_
|
||||
test_simple_swap_sycl<DataType, int64_t>(sycl_device);
|
||||
test_swap_as_lvalue_sycl<DataType, int64_t>(sycl_device);
|
||||
}
|
||||
void test_cxx11_tensor_layout_swap_sycl()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_layout_swap_sycl)
|
||||
{
|
||||
for (const auto& device :Eigen::get_sycl_supported_devices()) {
|
||||
CALL_SUBTEST(sycl_tensor_layout_swap_test_per_device<float>(device));
|
||||
|
||||
@@ -36,7 +36,7 @@ static void test_compound_assignment()
|
||||
}
|
||||
|
||||
|
||||
void test_cxx11_tensor_lvalue()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_lvalue)
|
||||
{
|
||||
CALL_SUBTEST(test_compound_assignment());
|
||||
}
|
||||
|
||||
@@ -265,7 +265,7 @@ static void test_casting()
|
||||
VERIFY_IS_EQUAL(sum1, 861);
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_map()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_map)
|
||||
{
|
||||
CALL_SUBTEST(test_0d());
|
||||
CALL_SUBTEST(test_1d());
|
||||
|
||||
@@ -39,7 +39,7 @@ static void test_sigmoid()
|
||||
}
|
||||
|
||||
|
||||
void test_cxx11_tensor_math()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_math)
|
||||
{
|
||||
CALL_SUBTEST(test_tanh());
|
||||
CALL_SUBTEST(test_sigmoid());
|
||||
|
||||
@@ -47,7 +47,7 @@ static void test_simple()
|
||||
}
|
||||
|
||||
|
||||
void test_cxx11_tensor_mixed_indices()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_mixed_indices)
|
||||
{
|
||||
CALL_SUBTEST(test_simple());
|
||||
}
|
||||
|
||||
@@ -459,7 +459,7 @@ static void test_composition()
|
||||
}
|
||||
|
||||
|
||||
void test_cxx11_tensor_morphing()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_morphing)
|
||||
{
|
||||
CALL_SUBTEST_1(test_simple_reshape<void>());
|
||||
CALL_SUBTEST_1(test_reshape_in_expr<void>());
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_morphing_sycl
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t
|
||||
#define EIGEN_USE_SYCL
|
||||
|
||||
@@ -240,7 +240,7 @@ template<typename DataType, typename dev_Selector> void sycl_morphing_test_per_d
|
||||
test_strided_slice_write_sycl<DataType, ColMajor, int64_t>(sycl_device);
|
||||
test_strided_slice_write_sycl<DataType, RowMajor, int64_t>(sycl_device);
|
||||
}
|
||||
void test_cxx11_tensor_morphing_sycl()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_morphing_sycl)
|
||||
{
|
||||
for (const auto& device :Eigen::get_sycl_supported_devices()) {
|
||||
CALL_SUBTEST(sycl_morphing_test_per_device<float>(device));
|
||||
|
||||
@@ -65,7 +65,7 @@ static void test_notification_multiple()
|
||||
VERIFY_IS_EQUAL(counter, 4);
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_notification()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_notification)
|
||||
{
|
||||
CALL_SUBTEST(test_notification_single());
|
||||
CALL_SUBTEST(test_notification_multiple());
|
||||
|
||||
@@ -94,7 +94,7 @@ static void test_contractions()
|
||||
}
|
||||
|
||||
|
||||
void test_cxx11_tensor_of_complex()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_of_complex)
|
||||
{
|
||||
CALL_SUBTEST(test_additions());
|
||||
CALL_SUBTEST(test_abs());
|
||||
|
||||
@@ -97,7 +97,7 @@ static void test_plus_equal()
|
||||
}
|
||||
|
||||
|
||||
void test_cxx11_tensor_of_const_values()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_of_const_values)
|
||||
{
|
||||
CALL_SUBTEST(test_assign());
|
||||
CALL_SUBTEST(test_plus());
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_of_float16_gpu
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int
|
||||
#define EIGEN_USE_GPU
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ static void test_initialization()
|
||||
}
|
||||
|
||||
|
||||
void test_cxx11_tensor_of_strings()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_of_strings)
|
||||
{
|
||||
// Beware: none of this is likely to ever work on a GPU.
|
||||
CALL_SUBTEST(test_assign());
|
||||
|
||||
@@ -84,7 +84,7 @@ static void test_padded_expr()
|
||||
}
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_padding()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_padding)
|
||||
{
|
||||
CALL_SUBTEST(test_simple_padding<ColMajor>());
|
||||
CALL_SUBTEST(test_simple_padding<RowMajor>());
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_padding_sycl
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t
|
||||
#define EIGEN_USE_SYCL
|
||||
|
||||
@@ -149,7 +149,7 @@ template<typename DataType, typename dev_Selector> void sycl_padding_test_per_de
|
||||
test_padded_expr<DataType, ColMajor, int64_t>(sycl_device);
|
||||
|
||||
}
|
||||
void test_cxx11_tensor_padding_sycl()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_padding_sycl)
|
||||
{
|
||||
for (const auto& device :Eigen::get_sycl_supported_devices()) {
|
||||
CALL_SUBTEST(sycl_padding_test_per_device<float>(device));
|
||||
|
||||
@@ -164,7 +164,7 @@ static void test_simple_patch()
|
||||
}
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_patch()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_patch)
|
||||
{
|
||||
CALL_SUBTEST(test_simple_patch<ColMajor>());
|
||||
CALL_SUBTEST(test_simple_patch<RowMajor>());
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_patch_sycl
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t
|
||||
#define EIGEN_USE_SYCL
|
||||
|
||||
@@ -241,7 +241,7 @@ template<typename DataType, typename dev_Selector> void sycl_tensor_patch_test_p
|
||||
test_simple_patch_sycl<DataType, RowMajor, int64_t>(sycl_device);
|
||||
test_simple_patch_sycl<DataType, ColMajor, int64_t>(sycl_device);
|
||||
}
|
||||
void test_cxx11_tensor_patch_sycl()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_patch_sycl)
|
||||
{
|
||||
for (const auto& device :Eigen::get_sycl_supported_devices()) {
|
||||
CALL_SUBTEST(sycl_tensor_patch_test_per_device<float>(device));
|
||||
|
||||
@@ -70,7 +70,7 @@ static void test_custom()
|
||||
}
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_random()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_random)
|
||||
{
|
||||
CALL_SUBTEST(test_default());
|
||||
CALL_SUBTEST(test_normal());
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_random_gpu
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int
|
||||
#define EIGEN_USE_GPU
|
||||
|
||||
|
||||
@@ -484,7 +484,7 @@ static void test_reduce_middle_dims() {
|
||||
}
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_reduction() {
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_reduction) {
|
||||
CALL_SUBTEST(test_trivial_reductions<ColMajor>());
|
||||
CALL_SUBTEST(test_trivial_reductions<RowMajor>());
|
||||
CALL_SUBTEST(test_simple_reductions<ColMajor>());
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_reduction_gpu
|
||||
|
||||
#define EIGEN_USE_GPU
|
||||
|
||||
#include "main.h"
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_reduction_sycl
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t
|
||||
#define EIGEN_USE_SYCL
|
||||
|
||||
@@ -174,7 +174,7 @@ template<typename DataType> void sycl_reduction_test_per_device(const cl::sycl::
|
||||
test_first_dim_reductions_max_sycl<DataType, ColMajor, int64_t>(sycl_device);
|
||||
test_last_dim_reductions_sum_sycl<DataType, ColMajor, int64_t>(sycl_device);
|
||||
}
|
||||
void test_cxx11_tensor_reduction_sycl() {
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_reduction_sycl) {
|
||||
for (const auto& device :Eigen::get_sycl_supported_devices()) {
|
||||
CALL_SUBTEST(sycl_reduction_test_per_device<float>(device));
|
||||
}
|
||||
|
||||
@@ -235,7 +235,7 @@ static void test_nested_ops_with_ref()
|
||||
}
|
||||
|
||||
|
||||
void test_cxx11_tensor_ref()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_ref)
|
||||
{
|
||||
CALL_SUBTEST(test_simple_lvalue_ref());
|
||||
CALL_SUBTEST(test_simple_rvalue_ref());
|
||||
|
||||
@@ -179,7 +179,7 @@ static void test_expr_reverse(bool LValue)
|
||||
}
|
||||
|
||||
|
||||
void test_cxx11_tensor_reverse()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_reverse)
|
||||
{
|
||||
CALL_SUBTEST(test_simple_reverse<ColMajor>());
|
||||
CALL_SUBTEST(test_simple_reverse<RowMajor>());
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_reverse_sycl
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t
|
||||
#define EIGEN_USE_SYCL
|
||||
|
||||
@@ -214,7 +214,7 @@ template<typename DataType> void sycl_reverse_test_per_device(const cl::sycl::de
|
||||
test_expr_reverse<DataType, RowMajor, int64_t>(sycl_device, true);
|
||||
test_expr_reverse<DataType, ColMajor, int64_t>(sycl_device, true);
|
||||
}
|
||||
void test_cxx11_tensor_reverse_sycl() {
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_reverse_sycl) {
|
||||
for (const auto& device :Eigen::get_sycl_supported_devices()) {
|
||||
CALL_SUBTEST(sycl_reverse_test_per_device<float>(device));
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ static void test_float_ceiling()
|
||||
}
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_roundings()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_roundings)
|
||||
{
|
||||
CALL_SUBTEST(test_float_rounding());
|
||||
CALL_SUBTEST(test_float_ceiling());
|
||||
|
||||
@@ -98,7 +98,7 @@ static void test_tensor_maps() {
|
||||
}
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_scan() {
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_scan) {
|
||||
CALL_SUBTEST((test_1d_scan<ColMajor, float, true>()));
|
||||
CALL_SUBTEST((test_1d_scan<ColMajor, float, false>()));
|
||||
CALL_SUBTEST((test_1d_scan<RowMajor, float, true>()));
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_scan_gpu
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int
|
||||
#define EIGEN_USE_GPU
|
||||
|
||||
|
||||
@@ -215,7 +215,7 @@ static void test_shuffle_unshuffle()
|
||||
}
|
||||
|
||||
|
||||
void test_cxx11_tensor_shuffling()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_shuffling)
|
||||
{
|
||||
CALL_SUBTEST(test_simple_shuffling<ColMajor>());
|
||||
CALL_SUBTEST(test_simple_shuffling<RowMajor>());
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_shuffling_sycl
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t
|
||||
#define EIGEN_USE_SYCL
|
||||
|
||||
@@ -111,7 +111,7 @@ template<typename DataType, typename dev_Selector> void sycl_shuffling_test_per_
|
||||
test_simple_shuffling_sycl<DataType, ColMajor, int64_t>(sycl_device);
|
||||
|
||||
}
|
||||
void test_cxx11_tensor_shuffling_sycl()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_shuffling_sycl)
|
||||
{
|
||||
for (const auto& device :Eigen::get_sycl_supported_devices()) {
|
||||
CALL_SUBTEST(sycl_shuffling_test_per_device<float>(device));
|
||||
|
||||
@@ -316,7 +316,7 @@ static void test_resize()
|
||||
VERIFY_IS_EQUAL(epsilon.size(), 3*5*7);
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_simple()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_simple)
|
||||
{
|
||||
CALL_SUBTEST(test_0d());
|
||||
CALL_SUBTEST(test_1d());
|
||||
|
||||
@@ -110,7 +110,7 @@ static void test_striding_as_lvalue()
|
||||
}
|
||||
|
||||
|
||||
void test_cxx11_tensor_striding()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_striding)
|
||||
{
|
||||
CALL_SUBTEST(test_simple_striding<ColMajor>());
|
||||
CALL_SUBTEST(test_simple_striding<RowMajor>());
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_striding_sycl
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t
|
||||
#define EIGEN_USE_SYCL
|
||||
|
||||
@@ -196,7 +196,7 @@ template <typename Dev_selector> void tensorStridingPerDevice(Dev_selector& s){
|
||||
test_striding_as_lvalue<float, RowMajor, int64_t>(sycl_device);
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_striding_sycl() {
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_striding_sycl) {
|
||||
for (const auto& device :Eigen::get_sycl_supported_devices()) {
|
||||
CALL_SUBTEST(tensorStridingPerDevice(device));
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ static void test_scalar_sugar_sub_div() {
|
||||
}
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_sugar()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_sugar)
|
||||
{
|
||||
CALL_SUBTEST(test_comparison_sugar());
|
||||
CALL_SUBTEST(test_scalar_sugar_add_mul());
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_sycl
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t
|
||||
#define EIGEN_USE_SYCL
|
||||
|
||||
@@ -269,7 +269,7 @@ template<typename DataType, typename dev_Selector> void sycl_computing_test_per_
|
||||
test_sycl_cast<DataType, int, ColMajor, int64_t>(sycl_device);
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_sycl() {
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_sycl) {
|
||||
for (const auto& device :Eigen::get_sycl_supported_devices()) {
|
||||
CALL_SUBTEST(sycl_computing_test_per_device<float>(device));
|
||||
}
|
||||
|
||||
@@ -801,7 +801,7 @@ static void test_tensor_randacc()
|
||||
}
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_symmetry()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_symmetry)
|
||||
{
|
||||
CALL_SUBTEST(test_symgroups_static());
|
||||
CALL_SUBTEST(test_symgroups_dynamic());
|
||||
|
||||
@@ -399,7 +399,7 @@ void test_multithread_shuffle()
|
||||
}
|
||||
|
||||
|
||||
void test_cxx11_tensor_thread_pool()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_thread_pool)
|
||||
{
|
||||
CALL_SUBTEST_1(test_multithread_elementwise());
|
||||
CALL_SUBTEST_1(test_multithread_compound_assignment());
|
||||
|
||||
@@ -159,7 +159,7 @@ static void test_trace_in_expr() {
|
||||
}
|
||||
|
||||
|
||||
void test_cxx11_tensor_trace() {
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_trace) {
|
||||
CALL_SUBTEST(test_0D_trace<ColMajor>());
|
||||
CALL_SUBTEST(test_0D_trace<RowMajor>());
|
||||
CALL_SUBTEST(test_all_dimensions_trace<ColMajor>());
|
||||
|
||||
@@ -144,7 +144,7 @@ void test_misc2() {
|
||||
#endif
|
||||
|
||||
|
||||
void test_cxx11_tensor_uint128()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_uint128)
|
||||
{
|
||||
#ifdef EIGEN_NO_INT128
|
||||
// Skip the test on compilers that don't support 128bit integers natively
|
||||
|
||||
@@ -105,7 +105,7 @@ static void test_entire_volume_patch()
|
||||
}
|
||||
}
|
||||
|
||||
void test_cxx11_tensor_volume_patch()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_volume_patch)
|
||||
{
|
||||
CALL_SUBTEST(test_single_voxel_patch());
|
||||
CALL_SUBTEST(test_entire_volume_patch());
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#define EIGEN_TEST_NO_LONGDOUBLE
|
||||
#define EIGEN_TEST_NO_COMPLEX
|
||||
#define EIGEN_TEST_FUNC cxx11_tensor_volume_patch_sycl
|
||||
|
||||
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t
|
||||
#define EIGEN_USE_SYCL
|
||||
|
||||
@@ -214,7 +214,7 @@ std::cout << "Running on " << s.template get_info<cl::sycl::info::device::name>(
|
||||
test_single_voxel_patch_sycl<DataType, int64_t>(sycl_device);
|
||||
test_entire_volume_patch_sycl<DataType, int64_t>(sycl_device);
|
||||
}
|
||||
void test_cxx11_tensor_volume_patch_sycl()
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_volume_patch_sycl)
|
||||
{
|
||||
for (const auto& device :Eigen::get_sycl_supported_devices()) {
|
||||
CALL_SUBTEST(sycl_tensor_volume_patch_test_per_device<float>(device));
|
||||
|
||||
@@ -24,7 +24,7 @@ template<typename T> void test_dgmres_T()
|
||||
//CALL_SUBTEST( check_sparse_square_solving(dgmres_colmajor_ssor) );
|
||||
}
|
||||
|
||||
void test_dgmres()
|
||||
EIGEN_DECLARE_TEST(dgmres)
|
||||
{
|
||||
CALL_SUBTEST_1(test_dgmres_T<double>());
|
||||
CALL_SUBTEST_2(test_dgmres_T<std::complex<double> >());
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user