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
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
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
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
Jakub Szuppe
da222c8243
Remove unused variable
2016-04-10 12:46:38 +02:00
Kyle Lutz
44f08e3932
Merge pull request #580 from boostorg/fix-svm-ptr-assignment-operator
...
Add missing return to svm_ptr assignment operator
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
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
Denis Demidov
2eed2c2fdd
Provide wait_list::reserve() method
...
This should help to get rid on unnecessary heap allocations.
The wait lists are usually small, which means that just pushing back
elements without prior call to reserve has very high chance of hitting
capacity limit every time wait_list::insert is called.
2016-03-18 10:58:29 +03:00
Jakub Szuppe
73ef474fdd
Add stable_sort_by_key()
...
Currently, stable_sort_by_key() works on GPUs only for
keys that are radix-sortable and for very small inputs.
2016-03-16 14:59:02 +01:00
Jakub Szuppe
b3224ea753
Misc. strided_iterator changes
2016-03-16 13:16:14 +01:00
Jakub Szuppe
b8fa408d4b
Fix compilation errors on OSX
...
Fix compilation errors occurring on OSX in strided_iterator,
merge_with_merge_path() and includes(). They were introduced
by commit 3826e9cae4 fixing
signed/unsigned int comparison warnings on Windows.
2016-03-16 13:08:39 +01:00
Kyle Lutz
38ba1c5447
Merge pull request #566 from haahh/update-test-jamfilev2
...
Update tests compile options in Jamfile.v2
2016-03-10 13:04:02 -08:00
Kyle Lutz
fe816c5acf
Merge pull request #571 from haahh/win-related-changes
...
Windows related changes
2016-03-10 10:14:03 -08:00
Jakub Szuppe
3826e9cae4
Misc fixes
2016-03-09 18:56:17 +01:00
Jakub Szuppe
1653a06f90
Suppress OpenCL-related deprecated declarations warns
...
Suppress deprecated declarations warnings (for MSVC, GCC and Clang)
caused by deprecated OpenCL Runtime functions.
2016-03-09 17:08:45 +01:00
Kyle Lutz
03dc34b820
Add type_name() support for OpenGL types
2016-03-07 19:52:32 -08:00
Jakub Szuppe
c7b87432cb
Fix valarray operators
2016-02-16 21:28:25 +01:00
Kyle Lutz
ff0b5ad69e
Add missing forward declaration to image3d.hpp
2016-02-02 20:45:10 -08:00
Kyle Lutz
9f1766dd17
Fix counting_iterator with unsigned types
2016-01-18 20:53:41 -08:00
Kyle Lutz
3466881454
Merge pull request #548 from haahh/timberosx_fixes
...
Timber OSX fixes
2016-01-13 10:56:58 -08:00
Jakub Szuppe
6b34c63fb8
Fix kernels in reduce_by_key_with_scane.hpp
...
It was not guaranteed that every barrier would be encountered by all
work-items in a work-group executing the kernels due to some work-items
returing too early, not entering the conditional if with with a barrier
or not executing every iteration of the loop with a barrier.
See barrier function description in OpenCL documentation.
2016-01-07 20:55:00 +01:00
Jakub Szuppe
6396530a2b
Fix comparison between signed and unsigned integer
2016-01-07 20:54:54 +01:00
Jakub Szuppe
a6f258cf09
Fix find_extrema_reduce kernel in find_extrema_with_reduce.hpp
...
It was not guaranteed that every barrier would be encountered by all
work-items in a work-group executing the kernel due to some work-items
returing too early, not entering the conditional if with with a barrier
or not executing every iteration of the loop with a barrier.
See barrier function description in OpenCL documentation.
2016-01-07 20:51:56 +01:00
Kyle Lutz
767c5beba8
Merge pull request #545 from okdshin/fix_linear_congruential_rng_copy
...
Modify linear_congruential_engine to copy its all states.
2015-12-28 12:28:58 -08:00
okdshin
5c467c9850
modify linear_congruential rng to copy its all states
2015-12-29 00:51:14 +09:00
okdshin
babfbafad6
Modify mersenne_twister_engine to copy its states.
2015-12-27 04:24:55 +09:00
Kyle Lutz
301c541824
Release v0.5
2015-12-20 18:34:14 -08:00
Kyle Lutz
0d846daad9
Merge pull request #542 from haahh/count_fix_rngs
...
Fix incorrect count update in rngs
2015-12-19 09:05:44 -08:00
Jakub Szuppe
39fa3634e1
Fix seed method call in linear_congruential_engine.hpp
...
There is no seed method with just one parameter of type result_type.
2015-12-18 22:12:51 +01:00
Jakub Szuppe
d2d62f9973
Fix incorrect count (global work size) update in generate methods
2015-12-18 22:12:47 +01:00
Jakub Szuppe
1f4088200d
Minor fixes related to Boost Inspection Report (1.60 develop)
2015-12-06 18:35:29 +01:00
Kyle Lutz
cb863b91a6
Add program::create_with_source() with vector of strings
2015-12-04 20:37:13 -08:00
Kyle Lutz
c983cc3a48
Merge pull request #535 from olivas/create_with_source_file
...
program::create_with_source_file doesn't fail with bad input
2015-11-19 19:39:58 -08:00
Alex Olivas
0a2d7fa0e1
if the ifstream can't be created in program::create_with_source_file then it throws std::ios_base::failure.
2015-11-18 16:27:19 -07:00
Kyle Lutz
0d172afaf8
Merge pull request #533 from haahh/minor_fixes
...
Minor fixes
2015-11-05 18:53:42 -08:00
Jakub Szuppe
6be8228a74
Fix integer type to uint_ (cl_uint)
2015-11-05 18:23:00 +01:00
Jakub Szuppe
e97f70cdac
CL_MAP_WRITE_INVALIDATE_REGION is available since OpenCL 1.2
2015-11-05 18:15:39 +01:00
Kyle Lutz
f249741bf8
Merge pull request #522 from haahh/pr_find_extrema_first_extremum
...
Fix find_extrema_with_atomics and _with_reduce
2015-10-23 00:19:54 -07:00
Jakub Szuppe
8099e07f40
Fix find_extrema_with_atomics
...
Now find_extrema_with_atomics always return the first extremum
in the given range.
2015-10-21 08:46:04 +02:00
Jakub Szuppe
2d972fe2a4
Fix find_extrema_with_reduce
...
Now find_extrema_with_reduce always return the first extremum
in the given range.
2015-10-21 08:46:04 +02:00
Kyle Lutz
781cf302cb
Merge pull request #525 from haahh/pr_vector_custom_alloc
...
Vector with custom allocator fix
2015-10-10 09:16:11 -07:00
Jakub Szuppe
afd09bcd7d
Fix vector when used with custom allocator
2015-10-05 14:28:37 +02:00
Kyle Lutz
0b4509afea
Merge pull request #520 from jpola/scatter_if
...
scatter if operation
2015-10-01 20:40:39 -07:00