2
0
mirror of https://github.com/boostorg/compute.git synced 2026-02-18 14:02:13 +00:00
Commit Graph

1076 Commits

Author SHA1 Message Date
Jakub Szuppe
2fdafa2128 Remove deprecated Boost macros 2016-05-03 17:13:08 +02:00
Jakub Szuppe
5e28138a7a Update minimum required Boost version to 1.54 2016-05-03 14:32:22 +02:00
Kyle Lutz
51afcd0c22 Merge pull request #602 from boostorg/reduce-uchar-to-float-test
Add test for reduce() with uchar to float
2016-05-02 19:44:18 -07:00
Kyle Lutz
90130f8376 Merge pull request #603 from boostorg/fix-sign-comparison-warning
Fix sign comparison warning in test_literal_conversion
2016-05-02 19:43:21 -07:00
Kyle Lutz
822be4d306 Merge pull request #605 from boostorg/kernel-get-arg-info-specializations
Add specializations for kernel::get_arg_info()
2016-05-02 19:42:13 -07:00
Kyle Lutz
fa6329e8cb Merge pull request #604 from boostorg/fix-function-static-assert-msg
Fix static assert message in boost::compute::function
2016-05-02 19:41:58 -07:00
Kyle Lutz
71f1d0d441 Add specializations for kernel::get_arg_info() 2016-04-30 10:32:13 -07:00
Kyle Lutz
52b78417f3 Fix static assert message in boost::compute::function 2016-04-30 09:47:04 -07:00
Kyle Lutz
d15cb3314b Fix sign comparison warning in test_literal_conversion 2016-04-30 09:21:44 -07:00
Kyle Lutz
0b3d80c35a Add test for reduce() with uchar to float 2016-04-29 20:06:52 -07:00
Kyle Lutz
62d487c036 Merge pull request #601 from boostorg/stable-sort-by-key-doc
Add stable_sort_by_key() to API reference
2016-04-26 21:36:37 -07:00
Kyle Lutz
1a3cb1468c Add stable_sort_by_key() to API reference 2016-04-26 19:43:51 -07:00
Kyle Lutz
3c2bbbe845 Merge pull request #597 from haahh/pr_fix_find_end
Fix find_end algorithm
2016-04-25 21:37:46 -07:00
Kyle Lutz
ecdb24ef86 Merge pull request #595 from haahh/pr_fix_uni_real_dist
Fix uniform real distribution
2016-04-25 21:35:23 -07:00
Kyle Lutz
2b346dbd6b Merge pull request #598 from jagerman/increase-literal-precision
Increase make_literal precision
2016-04-25 11:59:13 -07:00
Jakub Szuppe
8aea290320 Make sure a < b in uniform real distribution
Making sure that the left endpoint (a) of the range in uniform
real distribution is less than the right endpoint (b).
2016-04-25 19:46:21 +02:00
Jakub Szuppe
55bea58790 Add test for values generated by uniform real dist
New test checks if values generated by uniform real
distribution are in the [a,b) interval.
2016-04-25 19:46:09 +02:00
Jakub Szuppe
43a2d0286b Fix range of values generated by uniform real dist
Now generated floating-point values are uniformly distributed
on the interval [a, b). Before this commit it was possible
to produce values equal to b.
2016-04-25 19:43:47 +02:00
Kyle Lutz
8e5151aec8 Merge pull request #583 from boostorg/fix-intel-platform-documentation
Fix platform documentation
2016-04-25 10:01:04 -07:00
Jakub Szuppe
940f379aa9 Fix find_end algorithm
There was an uninitialized memory at the end of matching_indices
vector and it was read by detail::find_end_helper(...) function
resulting in wrong index returned by this function.
2016-04-25 13:58:55 +02:00
Jason Rhinelander
7f18293526 Increase make_literal precision
make_literal is losing some precision when making literal floating
point values because it uses digits10, but that only gives us the
number of decimal digits that will survive a decimal->native>decimal
conversion; what we are doing is a native->decimal->native conversion,
which requires the user of ::max_digits10 (which is 2 (double) or 3
(float) larger than ::digits10).

max_digits10 is a c++11 feature, however, so this commit uses
digits10 + 3 when the c++11 numeric_limits isn't available.
2016-04-24 17:32:55 -04:00
Jakub Szuppe
b18b5dbe8b Fix test_find_end test
We have to use the same queue in the whole test.
2016-04-24 21:46:07 +02:00
Kyle Lutz
48217d2918 Merge pull request #593 from haahh/pr_sort_by_key_desc_fix
Fix radix_sort_by_key for desc order
2016-04-24 10:56:56 -07:00
Kyle Lutz
481c6623f7 Merge pull request #592 from haahh/pr_optical_flow_example_fix
Fix bug in optical flow example
2016-04-24 10:54:30 -07:00
Jakub Szuppe
f29bbda7f8 Tests for radix sort in desc order 2016-04-23 18:24:24 +02:00
Jakub Szuppe
6d5d9b0b5d Now radix_sort_by_key is stable
Radix sort algorithm was not stable when used for
sorting by key in descending order (see issue #588).
2016-04-23 18:21:15 +02:00
Jakub Szuppe
8caa9c2ac3 Fix bug in optical flow example
Image sampler should be a global constant in
OpenCL program.
2016-04-23 15:17:25 +02:00
Kyle Lutz
437363b6b7 Merge pull request #591 from jagerman/develop
Fix normal distribution
2016-04-22 19:25:06 -07:00
Jason Rhinelander
d4653c6624 Use nextafter to push values down into [0,1) range
Without this, we can get values of 1, but that leads to negative
infinity from the following log; if we push the x1 value towards 0, we
ensure that (one-x1) is always a value in (0,1], and so the log value
will be in (-inf, 0], which is what we want.
2016-04-22 19:27:47 -04:00
Kyle Lutz
a832380b0b Add test for mean and variance of normal_distribution 2016-04-22 18:51:43 -04:00
Kyle Lutz
a1090c1290 Fix issue with zero values in normal_distribution 2016-04-22 18:51:26 -04:00
Kyle Lutz
bf8eeb9738 Use natural log in normal_distribution kernel 2016-04-22 18:50:49 -04:00
Kyle Lutz
3d9fd19350 Merge pull request #585 from bwitherspoon/wait-list-initializer-list
Add initializer list constructor to wait_list
2016-04-18 14:51:16 -07:00
Brett Witherspoon
8f449cde4b Add initializer list constructor to wait_list 2016-04-17 02:59:51 -05:00
Kyle Lutz
7474521aaa Merge pull request #582 from haahh/misc_fixes
Build fixes and other
2016-04-11 21:12:34 -07:00
Kyle Lutz
b0b1ea8d33 Add Apple CPUs and GPUs to list of supported platforms 2016-04-11 21:09:55 -07:00
Kyle Lutz
76156093e7 Add Intel GPUs to list of supported platforms 2016-04-11 21:09:41 -07:00
Jakub Szuppe
c683d4ab22 Fix AMD APP SDK 3.0 builds 2016-04-10 12:46:38 +02:00
Jakub Szuppe
c0b23e101c Use POCL 0.13
Now POCL version is specified by a branch or tag (from
github.com/pocl/pocl.git repository) and optionally a commit id.
2016-04-10 12:46:38 +02:00
Jakub Szuppe
da222c8243 Remove unused variable 2016-04-10 12:46:38 +02:00
Jakub Szuppe
796c5d4629 Fix tests for clSetMemObjectDestructorCallback() 2016-04-10 12:42:35 +02:00
Jakub Szuppe
9173c07f40 Fix saxpy benchmark
boost::compute::fill() may not be done before we start
execution measuring time.
2016-04-10 12:42:35 +02:00
Jakub Szuppe
dcddaae8d2 Make number of trials configurable from cmd line
Make number of trials in benchmarks (how many times algorithm
is run) configurable from command line.
2016-04-10 12:42:35 +02:00
Kyle Lutz
44f08e3932 Merge pull request #580 from boostorg/fix-svm-ptr-assignment-operator
Add missing return to svm_ptr assignment operator
boost-1.61.0
2016-04-07 15:10:42 -07:00
Kyle Lutz
203f0be723 Add missing return to svm_ptr assignment operator 2016-04-07 07:58:03 -07:00
Kyle Lutz
523d8e9745 Merge pull request #577 from ddemidov/wait_list-improvements
Wait list improvements
2016-03-18 19:38:41 -07:00
Kyle Lutz
da71051593 Merge pull request #573 from haahh/pr_stable_sort_by_key
Add stable_sort_by_key()
2016-03-18 19:36:22 -07:00
Kyle Lutz
90638570c9 Merge pull request #572 from haahh/pr_fix_comp_errors_osx
Fix compilation errors on OSX
2016-03-18 19:35:03 -07:00
Denis Demidov
cafe8b6578 Provide wait-list iterators 2016-03-18 22:27:55 +03:00
Denis Demidov
15b7414e78 Provide array subscript operator for wait_list 2016-03-18 22:20:39 +03:00