Commit Graph

1404 Commits

Author SHA1 Message Date
Kyle Lutz
1bd141a544 Add fizz_buzz example 2014-04-22 21:48:05 -07:00
Kyle Lutz
ab0a365060 Only allocate temporary vector if necessary in generic_reduce() 2014-04-22 21:42:28 -07:00
Kyle Lutz
c2ad69aaa0 Fix BOOST_COMPUTE_FUNCTION() usage in perf_cart_to_polar 2014-04-22 21:33:44 -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
59efaa0eeb Add tests and benchmarks for unique_copy 2014-04-21 02:00:02 +05:30
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
5fb9130146 Build benchmarks on Travis-CI 2014-04-18 08:16:40 -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
f491c55dbd Change perf_sort_by_key to use int_ and long_ instead of int and long 2014-04-18 12:17:55 +05:30
Kyle Lutz
2fb2c08806 Fix unused variable warning in test_user_event.cpp 2014-04-17 23:10:24 -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
85af0b7a19 Add cmake install target for Boost.Compute 2014-04-13 20:12:32 -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
fa8fcade52 Add perf_erase_remove benchmark 2014-04-12 16:07:30 -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
637cc98c01 Add print_vector example 2014-04-11 21:36:57 -07:00
Kyle Lutz
6499e30c66 Add test creating a std::future for an event object 2014-04-11 20:24:12 -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
1679574fa7 Merge pull request #80 from roshanr95/unique_benchmarks
Fix unique benchmarks
2014-04-03 19:25:09 -07:00
roshanr
fca6e136c2 Fix unique benchmarks 2014-04-03 12:07:16 +05:30
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
d013bc4f4d Enable compiler warnings for Travis-CI 2014-04-01 18:23:26 -07:00
Kyle Lutz
b3f8847422 Add mandelbrot example 2014-03-28 18:16:17 -07:00
Kyle Lutz
bf51769678 Use lcov to generate coverage info for coveralls.io 2014-03-25 20:30:24 -07:00