roshanr
de9b2ef6ff
Add algorithm and test for set_symmetric_difference
2014-05-19 01:08:41 +05:30
roshanr
acbabfeeff
Add algorithm and test for set_difference
2014-05-18 22:50:00 +05:30
roshanr
5f7cd290cf
Add algorithm and test for set_union
2014-05-18 22:49:54 +05:30
Kyle Lutz
4683a3b5be
Add default constructor for image_sampler
2014-05-17 17:26:43 -07:00
roshanr
1bb652cbea
Minor fixes
...
Change tile_size from string to int, use read_single_value instead of
finish
2014-05-17 20:41:03 +05:30
roshanr
c522d9a337
Add algorithm and test for set_intersection
2014-05-16 19:14:48 +05:30
roshanr
c0f844f018
Add compact kernel
...
Added kernel to compact the results of set kernels into actual sets
2014-05-16 19:13:27 +05:30
roshanr
78d06b2e26
Add tile_sets kernel
...
Added kernel to tile sets based on a balanced path
2014-05-16 19:13:03 +05:30
Kyle Lutz
b41ec2b1cb
Fix bug when invoking binary closures
2014-05-14 10:44:52 -07:00
Kyle Lutz
72747e0830
Release v0.2
2014-05-11 10:34:16 -07:00
Kyle Lutz
b89c886462
Refactor exception classes
...
This refactors and improves the exception classes. Additional
documentation as well as testing has been added. This also adds
a new static method to opencl_error which converts OpenCL error
codes to human-readable strings.
2014-05-10 14:59:33 -07:00
Kyle Lutz
b1eef72ec2
Add device vendor predicate functions
...
This adds a couple new functions for checking the vendor of a
compute device. This is useful for algorithms which specialize
based on the type of the underlying hardware.
2014-05-10 10:33:24 -07:00
Benoit Dequidt
985414ed50
Improve reduce_on_gpu kernel if device.vendor() == NVIDIA
...
An internal template functor is used in order to get a clear code
when the device is from nvidia we can do:
- loop unrolling
- warp reduction using volatile local memory
2014-05-10 10:16:22 -07:00
Kyle Lutz
4bb78de369
Merge pull request #110 from roshanr95/search_n
...
Search_n
2014-05-10 10:09:16 -07:00
roshanr
d3b3881d9e
Add algorithm and test for search_n
2014-05-09 22:48:40 +05:30
roshanr
09760b4372
Add algorithm and test for find_end
2014-05-09 05:16:04 +05:30
Kyle Lutz
6b7d83b40e
Merge pull request #103 from roshanr95/search_algorithms
...
Search algorithm
2014-05-07 21:04:40 -07:00
roshanr
79d5353a4e
Minor fixes
...
Change documentation style, add test for search(), remove unused
variable, remove trailing whitespaces
2014-05-07 15:53:03 +05:30
Kyle Lutz
88b6a8b3d4
Only call clRetainDevice()/clReleaseDevice() for sub-devices
2014-05-06 19:56:11 -07:00
roshanr
747fe2d41f
Search algorithm
...
Add algorithm and test for search()
2014-05-04 23:41:43 +05:30
roshanr
f49f8ca36a
Add kernel for pattern matching
...
Finds all matches. Can tell if there is a match starting at a
particular index.
2014-05-03 01:52:39 +05:30
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