2
0
mirror of https://github.com/boostorg/compute.git synced 2026-01-31 08:02:16 +00:00
Commit Graph

402 Commits

Author SHA1 Message Date
Kyle Lutz
d23894322f Merge pull request #102 from roshanr95/gather/scatter
Gather/scatter
2014-05-01 19:06:55 -07:00
roshanr
cd88be2e94 Rewrite scatter using meta_kernel 2014-05-01 14:53:34 +05:30
roshanr
d0e5efdbb7 Rewrite gather using meta_kernel 2014-05-01 14:26:58 +05:30
Kyle Lutz
37a00f5c4e Add normal_distribution class 2014-04-27 15:27:15 -07:00
Kyle Lutz
714416f17f Change uniform_real_distribution to use BOOST_COMPUTE_FUNCTION() 2014-04-27 15:17:30 -07:00
Kyle Lutz
7429589ca7 Change mersenne_twister_engine::generate() to use temporary storage 2014-04-27 15:14:59 -07:00
Kyle Lutz
02fc4fa170 Add define() method to function<> and closure<> 2014-04-27 15:02:48 -07:00
Kyle Lutz
0117e462e2 Fix unused parameter warnings 2014-04-27 13:11:24 -07:00
Kyle Lutz
6b00246e09 Simplify function/closure macro implementations 2014-04-27 12:56:14 -07:00
Kyle Lutz
9343b99085 Improve documentation 2014-04-24 19:51:45 -07:00
Kyle Lutz
2dc1a8cbfe Change count_if() to use reduce() 2014-04-22 22:24:51 -07:00
Kyle Lutz
ab0a365060 Only allocate temporary vector if necessary in generic_reduce() 2014-04-22 21:42:28 -07:00
Kyle Lutz
72a5449ffe Fix BOOST_COMPUTE_FUNCTION() usage in struct.hpp documentation 2014-04-22 21:31:14 -07:00
Kyle Lutz
127b350411 Remove unnecessary typename in function.hpp and closure.hpp
This fixes a warning when compiling these files with clang.
2014-04-20 19:34:21 -07:00
Kyle Lutz
4b67907023 Change BOOST_COMPUTE_FUNCTION() to use custom argument names
This changes the BOOST_COMPUTE_FUNCTION() macro (and the related
BOOST_COMPUTE_CLOSURE() macro) to use custom, user-provided argument
names instead of auto-generating them based on their index.

This is an API-breaking change. Users should now provide argument
names when using the BOOST_COMPUTE_FUNCTION() macro. The examples
and documentation have been updated to reflect the new API.
2014-04-20 19:13:48 -07:00
Kyle Lutz
2511bdb436 Merge pull request #97 from roshanr95/unique
Fix errors in unique
2014-04-20 16:42:56 -07:00
roshanr
3f537d806e Add unique_copy, modify unique to use it 2014-04-21 01:43:10 +05:30
Kyle Lutz
a78212fdde Rename K to K_BITS in radix_sort()
This should fix the following error seen on the Apple OpenCL
implementation when compiling the radix_sort program: "error:
definition of macro 'K' conflicts with an identifier used in
the precompiled header".
2014-04-20 10:16:02 -07:00
Kyle Lutz
8b06e3f7bb Add event::duration() method 2014-04-19 12:31:37 -07:00
Kyle Lutz
6ac757887c Support generic function callbacks for event 2014-04-19 11:38:10 -07:00
Kyle Lutz
7629748e49 Merge pull request #90 from roshanr95/perf_sort_by_key
Fix errors in perf_sort_by_key
2014-04-18 08:15:08 -07:00
roshanr
70da4979f5 Refactor recurring code into preprocessor
Makes it easy to add specialisations
2014-04-18 10:31:12 +05:30
Kyle Lutz
21d81fcd76 Add user_event class 2014-04-16 21:11:47 -07:00
Kyle Lutz
ac0be42cfc Change program::build() to return void 2014-04-16 21:01:31 -07:00
Kyle Lutz
b3ab16578b Include <boost/mpl/size.hpp> in function.hpp 2014-04-16 19:12:29 -07:00
Kyle Lutz
e84987b3f4 Fix unused parameter warning in reduce_on_gpu.hpp 2014-04-16 19:12:15 -07:00
Kyle Lutz
4f6c591362 Remove unnecessary typename in discard_iterator 2014-04-13 14:55:08 -07:00
Kyle Lutz
663ab01425 Add documentation for the random number generator classes 2014-04-13 14:33:03 -07:00
Kyle Lutz
3d8616e27e Add mersenne_twister_engine::generate() overload with transform 2014-04-13 14:18:41 -07:00
Kyle Lutz
6336b81911 Rename mersenne_twister_engine::fill() to generate() 2014-04-13 14:13:53 -07:00
Kyle Lutz
2ebb04caac Add discard() method to mersenne_twister_engine 2014-04-13 13:57:12 -07:00
Kyle Lutz
dd0b1fcb7b Add discard_iterator class 2014-04-13 13:45:01 -07:00
Kyle Lutz
6a9efd6d03 Optimize vector<T>::erase() when last equals end() 2014-04-12 16:16:01 -07:00
Kyle Lutz
dadced4703 Remove unused context variable in random_fill() 2014-04-12 11:33:09 -07:00
Kyle Lutz
b7c4f0ce18 Change mersenne_twister::seed() to take a command_queue 2014-04-12 11:14:44 -07:00
Kyle Lutz
7b2ca68539 Add documentation for the enqueue_1d_range_kernel() method 2014-04-12 10:11:02 -07:00
Kyle Lutz
8dac90de3a Fix spelling error in enqueue_native_kernel() documentation 2014-04-12 10:09:44 -07:00
Kyle Lutz
420c3dd15b Remove cl_int return values from command_queue
This updates the methods in command_queue to either return void
(for synchronous operations) or an event object (for asynchronous
operations). The caller will be notified of OpenCL errors via an
exception being thrown.
2014-04-12 10:02:45 -07:00
Kyle Lutz
7966768c80 Remove read/write buffer convenience overloads in command_queue 2014-04-12 09:40:37 -07:00
Kyle Lutz
e3604817df Remove explicit call to finish() in command_queue destructor
This removes the explicit call to finish() in the destructor
for the command_queue class.

The clFinish() function will be called automatically by the
clReleaseCommandQueue() function once the reference count for
the command queue drops to zero.
2014-04-12 09:35:39 -07:00
Kyle Lutz
7ec4566a00 Remove default local_work_size argument for enqueue_nd_range_kernel() 2014-04-12 09:22:28 -07:00
Kyle Lutz
89d97768d2 Remove enqueue_1d_range_kernel() overload with no local work-size 2014-04-12 09:17:48 -07:00
Kyle Lutz
15cf54cc48 Fix ambiguous member template warning with clang 2014-04-10 22:31:01 -07:00
Kyle Lutz
acb2188382 Improve reduce() performance with generic iterators 2014-04-10 22:16:04 -07:00
Kyle Lutz
b897b1f023 Copy multiple values per thread in copy_on_device() 2014-04-02 21:46:36 -07:00
Kyle Lutz
bae2bb6c7f Add get_nvidia_compute_capability() function 2014-04-02 21:30:22 -07:00
Kyle Lutz
01eb24f36c Fix bug in copy-constructor for wait_list 2014-03-23 21:26:09 -07:00
Kyle Lutz
6334d67720 Merge pull request #75 from roshanr95/unique
Unique algorithm
2014-03-23 21:24:05 -07:00
Kyle Lutz
5efecbdaad Merge pull request #74 from ddemidov/master
Fixing several warnings given by pedantic g++-4.8.2
2014-03-23 21:23:21 -07:00
roshanr
1e81b7ec2e Unique algorithm
Added unique() algorithm, tests and benchmarks. Removed unused variable
in scan_on_gpu() to remove warnings
2014-03-24 06:30:28 +05:30