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

578 Commits

Author SHA1 Message Date
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
Lorenzo Pistone
9211260bcc fix a few instances where the device type is not used as a bit mask 2015-09-11 12:21:11 +02:00
Kyle Lutz
239f4a247c Merge pull request #498 from boostorg/invoke
Add invoke() utility function
2015-09-01 21:49:54 -07:00
Kyle Lutz
5ac31a7f5f Merge pull request #496 from haahh/pr_enqueue_methods_return_events
Return events from all command_queue::enqueue_* methods
2015-09-01 21:49:23 -07:00
Jakub Szuppe
c882466dbd enqueue_* methods in command_queue class now return event object
All enqueue_* methods in command_queue class (except for
enqueue_map_buffer() and enqueue_barrier()) now return event object.
2015-08-20 12:01:55 +02:00
Kyle Lutz
cf5e40ee26 Merge pull request #497 from haahh/pr_find_extrema_supports_custom_comparision
Support for custom comparison function in find_extrema()
2015-08-19 20:24:04 -07:00
Kyle Lutz
ef109b75d5 Add invoke() utility function
This adds an invoke() function which calls an OpenCL function on a
device with the given arguments.
2015-08-19 08:18:15 -07:00
Jakub Szuppe
e6b20e6af7 Rename find_extrema_reduce() to find_extrema_with_reduce() 2015-08-19 13:42:22 +02:00
Jakub Szuppe
a50dae747d Support for custom comparision function in find_extrema() and min/max_element() 2015-08-19 13:42:22 +02:00
Kyle Lutz
057b220d18 Merge pull request #495 from haahh/pr_improve_find_if
Checking multiple values per thread in find_if()
2015-08-18 08:27:20 -07:00
Jakub Szuppe
75a42646a1 Checking multiple values per thread in find_if_with_atomics() 2015-08-15 15:39:06 +02:00
Kyle Lutz
fd43795770 Merge pull request #491 from haahh/pr_always_serial_reduce_for_cpus
Using serial_reduce() when reducing on CPU device
2015-08-12 08:30:14 -07:00
Jakub Szuppe
d98e6dfee6 Using serial_reduce() when reducing on CPU device 2015-08-08 18:00:49 +02:00
Jakub Szuppe
de0c8ba177 CPU-targeted merge sort adapted for sorting by key 2015-08-03 23:37:48 +02:00