runall_result test_main() { accelerator::set_default(require_device_with_double().device_path); runall_result result; result &= REPORT_RESULT((test_feature<int, 1>())); result &= REPORT_RESULT((test_feature<int, 2>())); result &= REPORT_RESULT((test_feature<int, 3>())); result &= REPORT_RESULT((test_feature<int, 5>())); result &= REPORT_RESULT((test_feature<unsigned, 1>())); result &= REPORT_RESULT((test_feature<unsigned, 2>())); result &= REPORT_RESULT((test_feature<unsigned, 3>())); result &= REPORT_RESULT((test_feature<unsigned, 5>())); result &= REPORT_RESULT((test_feature<float, 1>())); result &= REPORT_RESULT((test_feature<float, 2>())); result &= REPORT_RESULT((test_feature<float, 3>())); result &= REPORT_RESULT((test_feature<float, 5>())); result &= REPORT_RESULT((test_feature<double, 1>())); result &= REPORT_RESULT((test_feature<double, 2>())); result &= REPORT_RESULT((test_feature<double, 3>())); result &= REPORT_RESULT((test_feature<double, 5>())); return result; }
runall_result test_main() { // Test is using doubles therefore we have to make sure that it is not executed // on devices that does not support double types. accelerator::set_default(require_device_with_double().get_device_path()); runall_result result; result &= REPORT_RESULT((test_feature<int, 1>())); result &= REPORT_RESULT((test_feature<int, 2>())); result &= REPORT_RESULT((test_feature<int, 3>())); result &= REPORT_RESULT((test_feature<int, 5>())); result &= REPORT_RESULT((test_feature<unsigned int, 1>())); result &= REPORT_RESULT((test_feature<unsigned int, 2>())); result &= REPORT_RESULT((test_feature<unsigned int, 3>())); result &= REPORT_RESULT((test_feature<unsigned int, 5>())); result &= REPORT_RESULT((test_feature<float, 1>())); result &= REPORT_RESULT((test_feature<float, 2>())); result &= REPORT_RESULT((test_feature<float, 3>())); result &= REPORT_RESULT((test_feature<float, 5>())); result &= REPORT_RESULT((test_feature<double, 1>())); result &= REPORT_RESULT((test_feature<double, 2>())); result &= REPORT_RESULT((test_feature<double, 3>())); result &= REPORT_RESULT((test_feature<double, 5>())); return result; }
runall_result test_main() { // Test is using doubles therefore we have to make sure that it is not executed // on devices that does not support double types. accelerator::set_default(require_device_with_double().get_device_path()); runall_result result; int extdata[] = {2, 2}; result &= REPORT_RESULT((test_array_userdefined<usr_union, 1>(extdata))); result &= REPORT_RESULT((test_array_userdefined<usr_union, 2>(extdata))); return result; }