Commit Graph

791 Commits

Author SHA1 Message Date
Kyle Lutz
1360b882f8 Merge pull request #657 from Slonegg/check_flush_and_finish
check result of flush and finish
2016-10-18 21:08:42 -07:00
Kyle Lutz
dd045f721a Merge pull request #656 from Slonegg/master
transform_if_impl optimization: avoid reduction
2016-10-18 21:08:09 -07:00
Kyle Lutz
84673799c3 Merge pull request #654 from haahh/pr_docs
Document rough space complexity for every algorithm
2016-10-18 21:06:58 -07:00
Jakub Szuppe
9ed62a480f Make index expressions immutable 2016-10-08 11:25:28 +02:00
Jakub Szuppe
8c024fe178 Index expression is valid as long as buffer is
buffer_iterator_index_expr<> is now valid as long
as underlying buffer is valid, not buffer_iterator<>
used to create the expression.
2016-10-08 11:25:28 +02:00
Jakub Szuppe
8d9109e2f8 Add lambda wrappers for native_|half_ funcs 2016-09-24 21:37:21 +02:00
Jakub Szuppe
6f704003f1 Add wrappers for OpenCL builtin funs with ptrs 2016-09-24 21:37:21 +02:00
Jakub Szuppe
1b2bb4b98e Add missing lambda wrappers for builtin funcs 2016-09-24 21:35:25 +02:00
Dmitry Trifonov
e845a80ab8 added headers to program::compile 2016-09-14 13:54:49 -07:00
Dmitry Trifonov
9b2e9d05ab check result of flush and finish 2016-09-14 12:02:41 -07:00
Dmitry Trifonov
4bd324e6ff transform_if_impl optimization: avoid reduction 2016-09-10 14:42:56 -07:00
Kyle Lutz
86211062a7 Merge pull request #653 from haahh/pr_misc_doc_fixes
Misc documentation fixes
2016-09-01 21:41:46 -07:00
Jakub Szuppe
35f0f8145e Document rough space complexity for every algorithm 2016-08-28 23:19:28 +02:00
Jakub Szuppe
9496721421 Fix transform() description 2016-08-26 23:55:46 +02:00
Kyle Lutz
886205fdcf Merge pull request #651 from haahh/fix_minmax_element
Fix minmax_element() and add test for it
2016-08-23 21:53:24 -07:00
Jakub Szuppe
3196b71273 Fix minmax_element() and add test for it
Remove useless Compare template parameter and add
test for minmax_element().
2016-08-23 21:27:32 +02:00
Jakub Szuppe
2bd90c6392 Fix C4267 warn. when compiling with MSVC, OpenCL 2.0 2016-08-22 18:57:36 +02:00
Jakub Szuppe
45ea54f704 Fix gather algorithm 2016-08-22 18:55:20 +02:00
Jakub Szuppe
544242744c Fix typo in wait_list 2016-08-22 18:55:20 +02:00
Jakub Szuppe
6cd0222bbd Fix typo in context.hpp 2016-08-22 18:55:20 +02:00
Kyle Lutz
8cbe8b30c3 Merge pull request #642 from dPavelDev/master
Fixed unnecessary reallocation in vector::resize() when size == capacity
2016-08-15 18:36:33 -07:00
dPavelDev
7fc6e47970 Fixed unnecessary reallocation in vector::resize() when size == capacity 2016-08-15 14:10:15 +03:00
Jakub Szuppe
90861687d1 Fix system::platforms()
The 2nd call to clGetPlatformsIDs crashed when there
were no OpenCL platforms because then count variable was 0
and clGetPlatformIDs specification says: "If platforms is
not NULL, the num_entries must be greater than zero".
2016-08-12 11:58:49 +02:00
Kyle Lutz
05ab43ed58 Cast index argument to cl_uint in kernel::get_arg_info()
This casts the 'index' argument in kernel::get_arg_info() to cl_uint
in order to match the signature for clGetKernelArgInfo(). This fixes
the "conversion from 'size_t' to 'cl_uint', possible loss of data"
compiler warning.
2016-08-03 20:16:19 -07:00
Kyle Lutz
6688e92f07 Change size_t argument to uint_ in opengl_enqueue_*_gl_objects() functions
This changes the opengl_enqueue_*_gl_objects() functions to take their
'num_objects' argument as 'uint_' instead of 'size_t'. This fixes the
"conversion from 'size_t' to 'cl_uint', possible loss of data" compiler
warnings from MSVC.
2016-07-30 18:28:41 -07:00
Kyle Lutz
c4b3793be1 Ignore unused arguments in kernel::set_arg_svm_ptr()
This ignores unused arguments in the kernel::set_arg_svm_ptr()
when compiled without OpenCL 2.0 support. This fixes the "unused
parameter" compiler warning.
2016-07-30 18:19:26 -07:00
Kyle Lutz
75daaf67d1 Remove const from return type of context_error::get_private_info_size()
This removes the const specifier from the return type of the
context_error::get_private_info_size() method. This fixes the "type
qualifiers ignored on function return type" compiler warning.
2016-07-30 18:14:56 -07:00
Kyle Lutz
b8fdabab19 Merge pull request #636 from dPavelDev/develop
Fixed bug in opengl_create_shared_context
2016-07-27 21:14:38 -07:00
dPavelDev
e978396b21 Fixed bug in opengl_create_shared_context 2016-07-27 14:36:57 +03:00
Jakub Szuppe
32dc57bbf9 Add scan for multicore CPUs 2016-07-25 22:37:17 +02:00
Jakub Szuppe
cd5bb606ec Rename scan_on_cpu to serial_scan 2016-07-25 15:28:19 +02:00
Kyle Lutz
1d2f8cfbd9 Merge pull request #633 from haahh/pr_find_extrema_cpu
find_extrema for CPUs
2016-07-20 22:23:51 -07:00
Jakub Szuppe
06124180dc Fix find_extrema_with_reduce()
It fixes wrong type of variable representing index.
2016-07-17 13:24:07 +02:00
Jakub Szuppe
4c21633bf9 Fix vector copy ctor when using non-default context
Now correct queue (from correct context) is used in copy
constructor of boost::compute::vector.
2016-07-17 00:01:47 +02:00
Jakub Szuppe
fb641de7cc Add operator= for vectors with different allocator
Now code: `vector<T> a(context); vector<T, OtherAlloc> b(context);
a = b;` works.
2016-07-16 20:14:14 +02:00
Jakub Szuppe
8ae5cc9117 Array should always use queue from its context
Until now boost::compute::array worked correctly only
for default context (global) since it was using default
queue (global) for all its operations. Now it uses queue
from its context.
2016-07-16 19:30:25 +02:00
Jakub Szuppe
b810d12aea Making sure serial_reduce_threshold is in the right range
Parameter serial_reduce_threshold for reducing on CPU
should be always greater or equal to the number of compute units
(cores) in the CPU.
2016-07-16 13:02:34 +02:00
Jakub Szuppe
04b6e8fba3 find_extrema() optimized for multicore CPUs 2016-07-16 13:02:34 +02:00
Kyle Lutz
d303097000 Merge pull request #626 from haahh/pr_transform_cpu
Transform for multicore CPUs
2016-07-11 20:16:53 -07:00
Kyle Lutz
6e3213bfcf Merge pull request #628 from haahh/pr_reduce_cpu
Reduce for CPU
2016-07-11 20:16:19 -07:00
Thomas Trummer
a800dd33a1 Fix build error due to possible typo (on macOS) 2016-07-10 19:54:45 +02:00
Jakub Szuppe
a10e7d31f7 Disable CPU-optimized transform/copy_on_device() on Apple
Yet another bug on Apple OpenCL Platform.
2016-07-10 16:17:48 +02:00
Jakub Szuppe
4093481920 Remove unnecessary check 2016-07-10 13:56:39 +02:00
Jakub Szuppe
97f0225072 Fix ‘local_vals_arg’ may be uninitialized warning 2016-07-09 14:39:47 +02:00
Jakub Szuppe
9e2fc74826 Use serial_reduce for small inputs
For inputs smaller than <serial_reduce_threshold>
serial_reduce algorithm is used.
2016-07-09 14:06:06 +02:00
Jakub Szuppe
a085e6b3e1 Reduce for multicore CPUs 2016-07-09 14:06:06 +02:00
Jakub Szuppe
34c476c87a Tranform/copy on device optimized for CPUs 2016-07-06 19:23:30 +02:00
Kyle Lutz
a3f72e6191 Merge pull request #622 from haahh/pr_adjacent_diff_fix
Fix adjacent_difference when first == result
2016-07-05 16:52:40 -07:00
Jakub Szuppe
c6123c403c Remove unused function 2016-07-05 13:40:42 +02:00
Jakub Szuppe
92a16e459c Fix adjacent_difference when first == result
Situation where first == result was only covered
when binary function was not specified.
2016-07-01 21:25:46 +02:00
Jakub Szuppe
c47753c4fa Stable comparison sort, sort-by-key 2016-06-22 17:06:12 +02:00
Jakub Szuppe
7996382178 Use index instead of copying vals in bitonic sort-by-key
Instead of copying values in local memory in bitonic block
sort (when sorting by key), we save and copy local index
and copy value once at the end. This saves local memory.
2016-06-22 15:59:55 +02:00
Jakub Szuppe
8f033e72ee Add comparison sort and sort by key 2016-06-21 17:41:36 +02:00
Jakub Szuppe
8f4db3d7b7 Reuse dispatch_copy_async() in dispatch_copy() 2016-05-28 22:54:51 +02:00
Jakub Szuppe
bffc9f74fb Fix async copying when first == last (input is empty) 2016-05-28 22:46:35 +02:00
Jakub Szuppe
c9a0aba172 Remove debug macro, fix names of event variables 2016-05-28 22:05:50 +02:00
Jakub Szuppe
5c29b50823 Coping SVM to/from host by mapping SVM memory 2016-05-28 13:15:36 +02:00
Jakub Szuppe
753f883321 Support for svm_ptr<T> in meta_kernel 2016-05-28 13:15:36 +02:00
Jakub Szuppe
4280024f26 Now svm_ptr<T> keeps its context
This commit modifies svm_ptr<T> to keep its context. It is
convenient for the users and enables creating
svm_ptr_index_expr<T, IndexExpr> class.
2016-05-28 13:15:36 +02:00
Jakub Szuppe
aaaaca4ed2 Type-safe async coping from device to host 2016-05-28 13:15:36 +02:00
Jakub Szuppe
3dcbd4c001 Fix async coping svm_ptr<> from/to/on device 2016-05-28 13:15:36 +02:00
Jakub Szuppe
1419b7d36f Type-safe copying from device to host
Type-safe copying from device to host. Seperate copying
algorithm device -> host for non-contiguous OutputIterator (host).
2016-05-24 21:37:29 +02:00
Jakub Szuppe
ce8230b6f5 Coping from host for non-contiguous iterators (host)
When InputIterator (host) is a non-contiguous iterator we don't
need a separate algorithm for cases when value_types of InputIterator
and OutputIterator (device) do not match and cases when they do
match.
2016-05-21 17:16:13 +02:00
Jakub Szuppe
d12e07c0e9 Fix type-safety issues for async copying host->device 2016-05-21 16:58:15 +02:00
Jakub Szuppe
a830531445 Fix type-safety issues when copying host->device 2016-05-21 16:44:44 +02:00
Jakub Szuppe
56ad192b92 Now discrete_distribution generates IntType values
Class discrete_distribution should generate values of type
IntType. Until now it always generated unsigned int values.
2016-05-11 08:30:46 +02:00
Jakub Szuppe
227c05cbdc Add min() and max() methods for discrete_distribution 2016-05-11 08:30:44 +02:00
Jakub Szuppe
e9b2c0ff4b Add default constructor for discrete_distribution 2016-05-11 08:30:41 +02:00
Jakub Szuppe
1799ee1b6e Support for first==last in discrete_distribution range ctor
Add support for the case with first iterator being equal
to last iterator in range ctor. Now it behaves like ctor in
std::discrete_distribution.
Additionaly: now method probabilities() returns correct vector
of probabilities.
2016-05-11 08:30:39 +02:00
Jakub Szuppe
0fe1ab3e24 Add type checks for distributions
This commit adds asserts that check if used template
type is correct (is integral, is a floating point type).
2016-05-05 14:23:28 +02:00
Jakub Szuppe
38b75f920c Fix boost::compute::discrete_distribution constructor 2016-05-05 14:23:28 +02:00
Kyle Lutz
dc7bfa0252 Merge pull request #609 from haahh/pr_copy_buffer_for_device_ptr
Enable copying with copy buffer op for device_ptr
2016-05-03 20:58:09 -07:00
Jakub Szuppe
02e12b40fd Enable copying with copy buffer op for device_ptr
This commit enables copying data using clEnqueueCopyBuffer()
in boost::compute::copy() algorithm for device_ptr<>.
2016-05-03 21:39:19 +02:00
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
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
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
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
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
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
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
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
Kyle Lutz
e27e5ee72b Merge pull request #518 from boostorg/event-wait-const
Event wait const
2015-09-28 19:50:29 -07:00
Kyle Lutz
b2e2bdfb0d Merge pull request #510 from haahh/dev_events_for_queue_enqueue_methods
Events for queue enqueue_map_ methods
2015-09-28 19:50:10 -07:00
Jakub Pola
c6c7f4a679 Copyrights fixes 2015-09-28 21:16:31 +02:00
Jakub Pola
f25b47d6f3 scatter if operation 2015-09-28 17:17:10 +02:00
Kyle Lutz
a56ae5687f Make wait_list::wait() const 2015-09-23 21:39:47 -07:00
Kyle Lutz
c248dadbca Make event::wait() const 2015-09-23 21:39:02 -07:00
Kyle Lutz
c75f5dc858 Merge pull request #516 from boostorg/adapt-struct-array
Add array support to BOOST_COMPUTE_ADAPT_STRUCT()
2015-09-20 16:58:55 -07:00
Kyle Lutz
68155f7597 Add array support to BOOST_COMPUTE_ADAPT_STRUCT()
This adds support for C-style arrays (e.g. "int array[10]") to the
BOOST_COMPUTE_ADAPT_STRUCT() macro.

Thanks to Fabian Bösch for providing the code.
2015-09-19 18:28:17 -05:00
Jakub Szuppe
36418e4cf8 Remove redundant kernel compilation from binary_find
After this binary_find kernel is compiled only once during binary_find algorithm
execution instead of in every iteration of the while loop.
2015-09-19 19:17:27 +02:00
Jakub Szuppe
10583d3868 Fix binary_find algorithm
This prevents iterators from going out of range which
resulted in errors.
2015-09-19 19:11:32 +02:00
Kyle Lutz
f04b1aabde Merge pull request #511 from haahh/pr_fix_search_search_n
Fix for search and search_n algorithm
2015-09-15 12:41:10 -05:00
Jakub Szuppe
0e51ad4ad8 Fix for search and search_n algorithm 2015-09-12 19:29:16 +02:00
Jakub Szuppe
55a7f874a6 Add missing enqueue_map_image method in command queue 2015-09-12 16:26:10 +02:00
Jakub Szuppe
88beaa0502 Add asynchronous versions of a few methods in command_queue class
Add asynchronous versions for enqueue_map_buffer(), enqueue_read_buffer_rect()
and enqueue_write_buffer_rect().
2015-09-12 16:26:09 +02:00
Jakub Szuppe
5c99e3f7f3 enqueue_map_buffer returns associated event through parameter 2015-09-12 16:26:09 +02:00
Kyle Lutz
75d32254b1 Merge pull request #509 from haahh/pr_algorithm_reduce_by_key
Include Reduce by key in algorithm.hpp meta-header
2015-09-11 19:17:52 -07:00
Jakub Szuppe
1566a79a4e Add reduce by key algorithm to algorithm.hpp meta-header 2015-09-11 21:51:01 +02:00