/third_party/boost/libs/compute/test/ |
D | test_copy_type_mismatch.cpp | 85 bc::vector<double_> device_vector(4, context); in BOOST_AUTO_TEST_CASE() local 88 bc::copy(host, host + 4, device_vector.begin(), queue); in BOOST_AUTO_TEST_CASE() 89 CHECK_RANGE_EQUAL(double_, 4, device_vector, (6.1f, 10.2f, 19.3f, 25.4f)); in BOOST_AUTO_TEST_CASE() 98 bc::vector<int_> device_vector(4, context); in BOOST_AUTO_TEST_CASE() local 101 bc::copy(host, host + 4, device_vector.begin(), queue); in BOOST_AUTO_TEST_CASE() 105 device_vector, in BOOST_AUTO_TEST_CASE() 124 bc::vector<int_> device_vector(4, context); in BOOST_AUTO_TEST_CASE() local 139 bc::copy(host, host + 4, device_vector.begin(), queue); in BOOST_AUTO_TEST_CASE() 143 device_vector, in BOOST_AUTO_TEST_CASE() 179 bc::vector<int_> device_vector(4, context); in BOOST_AUTO_TEST_CASE() local [all …]
|
D | test_user_defined_types.cpp | 87 compute::vector<UDD> device_vector(host_vector.size(), context); in BOOST_AUTO_TEST_CASE() local 89 host_vector.begin(), host_vector.end(), device_vector.begin(), queue in BOOST_AUTO_TEST_CASE() 94 device_vector.begin(), in BOOST_AUTO_TEST_CASE() 95 device_vector.end(), in BOOST_AUTO_TEST_CASE() 110 device_vector.begin(), in BOOST_AUTO_TEST_CASE() 111 device_vector.end(), in BOOST_AUTO_TEST_CASE()
|
D | test_lambda.cpp | 552 compute::vector<compute::uint_> device_vector(host_data, host_data + 5, queue); in BOOST_AUTO_TEST_CASE() local 558 device_vector.begin(), device_vector.end(), in BOOST_AUTO_TEST_CASE() 559 device_vector.begin(), in BOOST_AUTO_TEST_CASE() 563 CHECK_RANGE_EQUAL(compute::uint_, 5, device_vector, (4, 4, 5, 6, 6)); in BOOST_AUTO_TEST_CASE() 569 compute::vector<compute::short_> device_vector(host_data, host_data + 5, queue); in BOOST_AUTO_TEST_CASE() local 575 device_vector.begin(), device_vector.end(), in BOOST_AUTO_TEST_CASE() 576 device_vector.begin(), in BOOST_AUTO_TEST_CASE() 580 CHECK_RANGE_EQUAL(compute::short_, 5, device_vector, (4, 4, 5, 6, 6)); in BOOST_AUTO_TEST_CASE() 586 compute::vector<compute::uchar_> device_vector(host_data, host_data + 5, queue); in BOOST_AUTO_TEST_CASE() local 592 device_vector.begin(), device_vector.end(), in BOOST_AUTO_TEST_CASE() [all …]
|
/third_party/boost/libs/compute/example/ |
D | transform_sqrt.cpp | 34 compute::vector<float> device_vector(host_vector.size(), context); in main() local 38 host_vector.begin(), host_vector.end(), device_vector.begin(), queue in main() 43 device_vector.begin(), in main() 44 device_vector.end(), in main() 45 device_vector.begin(), in main() 52 device_vector.begin(), device_vector.end(), host_vector.begin(), queue in main()
|
D | sort_vector.cpp | 46 compute::vector<int> device_vector = host_vector; in main() local 49 compute::sort(device_vector.begin(), device_vector.end()); in main() 52 compute::copy(device_vector.begin(), in main() 53 device_vector.end(), in main()
|
D | copy_data.cpp | 31 compute::vector<int> device_vector(5, context); in main() local 35 host_data, host_data + 5, device_vector.begin(), queue in main() 43 device_vector.begin(), device_vector.end(), host_vector.begin(), queue in main()
|
/third_party/boost/libs/compute/perf/ |
D | perf_is_sorted.cpp | 39 boost::compute::vector<int> device_vector(PERF_N, context); in main() local 41 host_vector.begin(), host_vector.end(), device_vector.begin(), queue in main() 45 boost::compute::sort(device_vector.begin(), device_vector.end(), queue); in main() 46 boost::compute::reverse(device_vector.begin(), device_vector.end(), queue); in main() 52 device_vector.begin(), device_vector.end(), queue in main()
|
D | perf_sort_float.cpp | 43 boost::compute::vector<float> device_vector(PERF_N, context); in main() local 47 device_vector.begin(), in main() 55 device_vector.begin(), in main() 56 device_vector.end(), in main() 64 if(!boost::compute::is_sorted(device_vector.begin(), in main() 65 device_vector.end(), in main()
|
D | perf_prev_permutation.cpp | 45 boost::compute::vector<int> device_vector(PERF_N, context); in main() local 47 host_vector.begin(), host_vector.end(), device_vector.begin(), queue in main() 54 device_vector.begin(), device_vector.end(), queue in main() 59 device_vector.begin(), device_vector.end(), queue in main()
|
D | perf_next_permutation.cpp | 45 boost::compute::vector<int> device_vector(PERF_N, context); in main() local 47 host_vector.begin(), host_vector.end(), device_vector.begin(), queue in main() 54 device_vector.begin(), device_vector.end(), queue in main() 59 device_vector.begin(), device_vector.end(), queue in main()
|
D | perf_binary_find.cpp | 45 boost::compute::vector<int> device_vector(PERF_N, context); in main() local 47 host_vector.begin(), host_vector.end(), device_vector.begin(), queue in main() 52 device_vector.begin(), device_vector.end(), _1 < 20, queue in main() 63 device_vector.begin(), device_vector.end(), _1 >= 20, queue in main()
|
D | perf_partition_point.cpp | 45 boost::compute::vector<int> device_vector(PERF_N, context); in main() local 47 host_vector.begin(), host_vector.end(), device_vector.begin(), queue in main() 52 device_vector.begin(), device_vector.end(), _1 < 20, queue in main() 60 device_vector.begin(), device_vector.end(), _1 < 20, queue in main()
|
D | perf_comparison_sort.cpp | 45 boost::compute::vector<int_> device_vector(PERF_N, context); in main() local 59 device_vector.begin(), in main() 66 device_vector.begin(), in main() 67 device_vector.end(), in main() 77 if(!boost::compute::is_sorted(device_vector.begin(), in main() 78 device_vector.end(), in main()
|
D | perf_max_element.cpp | 42 boost::compute::vector<int> device_vector(PERF_N, context); in main() local 46 device_vector.begin(), in main() 51 = device_vector.begin(); in main() 57 device_vector.begin(), device_vector.end(), queue in main() 82 size_t device_max_idx = std::distance(device_vector.begin(), device_max_iter); in main()
|
D | perf_erase_remove.cpp | 43 boost::compute::vector<int> device_vector( in main() local 48 device_vector.erase( in main() 50 device_vector.begin(), device_vector.end(), 4, queue in main() 52 device_vector.end(), in main()
|
D | perf_rotate.cpp | 43 boost::compute::vector<int> device_vector(PERF_N, context); in main() local 45 host_vector.begin(), host_vector.end(), device_vector.begin(), queue in main() 52 device_vector.begin(), device_vector.begin()+(PERF_N/2), device_vector.end(), queue in main()
|
D | perf_nth_element.cpp | 43 boost::compute::vector<int> device_vector(PERF_N, context); in main() local 45 host_vector.begin(), host_vector.end(), device_vector.begin(), queue in main() 52 device_vector.begin(), device_vector.begin()+(PERF_N/2), device_vector.end(), queue in main()
|
D | perf_partition.cpp | 43 boost::compute::vector<int> device_vector(PERF_N, context); in main() local 45 host_vector.begin(), host_vector.end(), device_vector.begin(), queue in main() 53 host_vector.begin(), host_vector.end(), device_vector.begin(), queue in main() 58 device_vector.begin(), device_vector.end(), _1 < 10, queue in main()
|
D | perf_rotate_copy.cpp | 43 boost::compute::vector<int> device_vector(PERF_N, context); in main() local 45 host_vector.begin(), host_vector.end(), device_vector.begin(), queue in main() 54 …device_vector.begin(), device_vector.begin()+(PERF_N/2), device_vector.end(), device_vector2.begin… in main()
|
D | perf_cart_to_polar.cpp | 102 compute::vector<float2_> device_vector(PERF_N, context); in main() local 106 device_vector.begin(), in main() 114 device_vector.begin(), in main() 115 device_vector.end(), in main() 116 device_vector.begin(), in main() 136 device_vector.begin(), in main() 137 device_vector.end(), in main()
|
D | perf_thrust_reduce_by_key.cu | 60 thrust::device_vector<int> device_keys = host_keys; in main() 61 thrust::device_vector<int> device_values = host_values; in main() 64 thrust::device_vector<int> device_keys_results(PERF_N); in main() 65 thrust::device_vector<int> device_values_results(PERF_N); in main() 67 typedef typename thrust::device_vector<int>::iterator iterType; in main()
|
D | perf_exclusive_scan.cpp | 44 boost::compute::vector<int> device_vector(PERF_N, context); in main() local 49 device_vector.begin(), in main() 59 device_vector.begin(), in main() 65 device_vector.begin(), in main() 66 device_vector.end(), in main()
|
D | perf_partial_sum.cpp | 46 boost::compute::vector<int_> device_vector(PERF_N, context); in main() local 51 device_vector.begin(), in main() 61 device_vector.begin(), in main() 67 device_vector.begin(), in main() 68 device_vector.end(), in main()
|
D | perf_bolt_reduce_by_key.cpp | 62 bolt::cl::device_vector<int> device_keys(PERF_N); in main() 63 bolt::cl::device_vector<int> device_values(PERF_N); in main() 70 bolt::cl::device_vector<int> device_keys_results(PERF_N); in main() 71 bolt::cl::device_vector<int> device_values_results(PERF_N); in main() 73 typedef bolt::cl::device_vector<int>::iterator iterType; in main()
|
D | perf_search_n.cpp | 43 boost::compute::vector<int> device_vector(PERF_N, context); in main() local 45 host_vector.begin(), host_vector.end(), device_vector.begin(), queue in main() 52 device_vector.begin(), device_vector.end(), in main()
|