2
0
mirror of https://github.com/boostorg/compute.git synced 2026-01-31 20:12:23 +00:00
Commit Graph

370 Commits

Author SHA1 Message Date
Kyle Lutz
c69ea170fb Remove adjacent_transform_iterator class 2014-08-21 07:00:13 -07:00
Kyle Lutz
b3ea818248 Rewrite unique() algorithm 2014-08-21 07:00:10 -07:00
Kyle Lutz
b533df6a5c Rewrite adjacent_find() algorithm 2014-08-20 22:46:51 -07:00
Kyle Lutz
45c5ec3281 Rewrite adjacent_difference() algorithm 2014-08-20 22:43:27 -07:00
roshanr
515e1b29ba Enforce same tile_size for all kernels 2014-08-18 16:55:20 +05:30
Kyle Lutz
417a50e3f3 Merge pull request #238 from roshanr95/templating
Modify templating
2014-08-15 19:30:34 -07:00
roshanr
d10d992f62 Move templating from kernel to its member function 2014-08-15 20:32:18 +05:30
Kyle Lutz
8c7efd24fd Add support for multi-device contexts 2014-08-13 20:28:34 -07:00
Kyle Lutz
9f5cc79606 Merge pull request #228 from roshanr95/merge
Merge algorithm
2014-08-11 19:59:17 -07:00
roshanr
c48760fd90 Add a merge-path based merge algorithm and change merge to use it
Added a merge_path kernel and a merge algorithm based on it.
Also changed merge to use the new algorithm.
2014-08-10 07:29:08 +05:30
Kyle Lutz
bd427b8a1b Merge pull request #224 from kylelutz/capture-containers-with-closure
Capture containers with closure
2014-08-09 09:00:43 -07:00
Kyle Lutz
06e0ae10ee Merge pull request #225 from f-koehler/issue217
added wait_list as argument and event as return for opengl enqueue_* methods
2014-08-09 08:56:57 -07:00
f-koehler
3c15712941 added wait_list as argument and event as return for opengl enqueue_* methods 2014-08-08 19:12:10 +02:00
Kyle Lutz
fd8c8f934b Support capturing containers with BOOST_COMPUTE_CLOSURE() 2014-08-07 22:20:16 -07:00
Kyle Lutz
95c331fa84 Capture references with BOOST_COMPUTE_CLOSURE() 2014-08-07 20:57:34 -07:00
Kyle Lutz
4703488c45 Merge pull request #212 from roshanr95/nth-element
Nth element
2014-08-05 19:00:30 -07:00
roshanr
30082abd59 Improve nth_element performance and unit testing 2014-08-05 22:12:45 +05:30
Kyle Lutz
5d663ff338 Fix bug with count_if() on AMD
This fixes an issue in which the count_if_with_reduce()
function fails to compile because convert_ulong(bool) is
not supported.

See issue #202.
2014-07-30 21:40:00 -07:00
Kyle Lutz
2cb564c59c Merge pull request #200 from kylelutz/bind
Add bind() function
2014-07-29 18:29:16 -07:00
Kyle Lutz
f21abdff7e Add bind() function 2014-07-27 10:33:59 -07:00
roshanr
92ae416a32 Improve binary_find performance 2014-07-18 12:32:18 +05:30
Kyle Lutz
f50e9c0110 Release v0.3 2014-07-15 21:07:20 -07:00
Kyle Lutz
132fc85270 Add OpenCL 1.2 memory flags to mem_flags enum 2014-07-12 14:44:03 -07:00
Kyle Lutz
89eee4b60e Merge pull request #193 from kylelutz/unify-seed-method-interface
Unify seed() method interface in the random number engines
2014-07-12 14:35:50 -07:00
Kyle Lutz
e8afaf1e7c Add perf_copy_if benchmark 2014-07-12 14:19:23 -07:00
Kyle Lutz
84b24fcacb Unify seed() method interface in the random number engines
This updates the random number engines to both use the same
interface for their seed() method.
2014-07-12 14:07:48 -07:00
Kyle Lutz
61645c41c3 Fix issues with popcount() on OpenCL 1.1 devices 2014-07-12 12:47:41 -07:00
Kyle Lutz
dfe9399c9f Check OpenCL version before calling enqueue_fill_buffer()
This adds a check for OpenCL version 1.2 before calling the
enqueue_fill_buffer() function in the fill() algorithm.
2014-07-12 11:22:01 -07:00
Kyle Lutz
9dc87712e9 Improve documentation 2014-07-11 23:25:41 -07:00
Kyle Lutz
a4ae254adc Rename mersenne_twister_engine header
This renames the mersenne_twister_engine header from
"mersenne_twister.hpp" to "mersenne_twister_engine.hpp".
2014-07-11 22:27:16 -07:00
Kyle Lutz
40d0166cb2 Merge pull request #182 from kylelutz/rename-create-with-builtin-kernels
Rename create_with_builtin_kernels() method
2014-07-10 20:02:51 -07:00
Kyle Lutz
94306ce2e8 Merge pull request #179 from kylelutz/deprecate-device-ptr
Move device_ptr to the detail namespace
2014-07-10 20:02:39 -07:00
Kyle Lutz
48cee2b619 Rename create_with_builtin_kernels() method 2014-07-10 19:27:17 -07:00
Kyle Lutz
9106222e61 Merge pull request #178 from kylelutz/equality-operators
Add equality operators for all wrapper classes
2014-07-09 22:10:36 -07:00
Kyle Lutz
e0535d7233 Move device_ptr to the detail namespace
This deprecates the device_ptr class and moves it to the detail
namespace. The buffer_iterator class should be used instead of
device_ptr for referencing a memory location on the device.
2014-07-08 21:04:23 -07:00
Kyle Lutz
7d377989ee Add equality operators for all wrapper classes 2014-07-08 20:33:02 -07:00
Kyle Lutz
4a1b3edf48 Fix resize bug with vector::assign()
This fixes a bug in which vector::assign() would not resize
itself to accommodate the assigned values. Now the behavior
matches that of std::vector.
2014-07-07 21:56:39 -07:00
Kyle Lutz
cae813ec3c Add get_info<Info>() specializations 2014-07-07 19:14:14 -07:00
Kyle Lutz
bd164a24b2 Merge pull request #175 from kylelutz/fix-platform-empty-devices
Fix errors when using platforms with no devices
2014-07-07 18:57:16 -07:00
Kyle Lutz
5d6921f162 Merge pull request #170 from kylelutz/create-program-with-built-in-kernels
Add program::create_with_built_in_kernels() method
2014-07-07 08:04:12 -07:00
Kyle Lutz
c156ca7198 Merge pull request #169 from kylelutz/hash-function
Add hash() function
2014-07-07 08:02:09 -07:00
Kyle Lutz
8f952b3c5b Merge pull request #168 from kylelutz/struct-is-packed
Add check for packed structs in BOOST_COMPUTE_ADAPT_STRUCT()
2014-07-07 08:01:50 -07:00
Kyle Lutz
73443e0111 Fix errors when using platforms with no devices
This fixes errors caused when handling OpenCL platforms with
no devices. Now the platform::devices() method will properly
return an empty vector without throwing an exception when such
a platform is encountered.

Previously, default_device() would throw an exception when
confronted with a platform with no devices even if devices
from other platforms on the system were available.

Thanks to Godeffroy Valet for reporting this issue.
2014-07-07 07:57:02 -07:00
Kyle Lutz
6103ff6cfb Add program::create_with_built_in_kernels() method 2014-07-02 23:45:35 -07:00
Kyle Lutz
6af32b3d8f Add hash() function 2014-07-02 23:24:18 -07:00
Kyle Lutz
235261a977 Add check for packed structs in BOOST_COMPUTE_ADAPT_STRUCT()
This adds a compile-time check for non-padded structs in the
BOOST_COMPUTE_ADAPT_STRUCT() macro. Also updates the macro to
add "__attribute__((packed))" to the OpenCL struct definition.
2014-07-02 22:53:48 -07:00
Kyle Lutz
90217d055b Add compile() and link() methods to program 2014-07-02 22:32:58 -07:00
roshanr
acf4698af1 Add benchmark for lce
Added benchmark for lce and changed threads to 1024
2014-06-30 23:41:58 +05:30
roshanr
d81edfc387 Fix errors in lce
Remove unused parameter
Fix discard() to work for all sizes
2014-06-30 23:41:16 +05:30
Kyle Lutz
2fa478a11f Merge pull request #158 from roshanr95/search-algorithms
Search algorithms
2014-06-25 18:37:56 -07:00