Kyle Lutz
dd045f721a
Merge pull request #656 from Slonegg/master
...
transform_if_impl optimization: avoid reduction
2016-10-18 21:08:09 -07:00
Kyle Lutz
84673799c3
Merge pull request #654 from haahh/pr_docs
...
Document rough space complexity for every algorithm
2016-10-18 21:06:58 -07:00
Jakub Szuppe
79d90bcd3b
Fix Travis-CI OSX build
...
There was a conflict between numpy installed by pip
and brew.
2016-10-11 17:33:14 +02:00
Rene Rivera
82f588f24e
Add, and update, documentation build targets.
2016-10-10 11:39:48 -05:00
Jakub Szuppe
9ed62a480f
Make index expressions immutable
2016-10-08 11:25:28 +02:00
Jakub Szuppe
8c024fe178
Index expression is valid as long as buffer is
...
buffer_iterator_index_expr<> is now valid as long
as underlying buffer is valid, not buffer_iterator<>
used to create the expression.
2016-10-08 11:25:28 +02:00
Jakub Szuppe
e25bb7d99d
POCL does not have remquo() OpenCL built-in func impl
2016-09-24 22:31:58 +02:00
Jakub Szuppe
8d9109e2f8
Add lambda wrappers for native_|half_ funcs
2016-09-24 21:37:21 +02:00
Jakub Szuppe
6f704003f1
Add wrappers for OpenCL builtin funs with ptrs
2016-09-24 21:37:21 +02:00
Jakub Szuppe
131953bf94
Add macro for checking collections of real numbers
2016-09-24 21:35:29 +02:00
Jakub Szuppe
1b2bb4b98e
Add missing lambda wrappers for builtin funcs
2016-09-24 21:35:25 +02:00
Dmitry Trifonov
e845a80ab8
added headers to program::compile
2016-09-14 13:54:49 -07:00
Dmitry Trifonov
9b2e9d05ab
check result of flush and finish
2016-09-14 12:02:41 -07:00
Dmitry Trifonov
4bd324e6ff
transform_if_impl optimization: avoid reduction
2016-09-10 14:42:56 -07:00
Kyle Lutz
86211062a7
Merge pull request #653 from haahh/pr_misc_doc_fixes
...
Misc documentation fixes
2016-09-01 21:41:46 -07:00
Jakub Szuppe
35f0f8145e
Document rough space complexity for every algorithm
2016-08-28 23:19:28 +02:00
Jakub Szuppe
25913c941b
Add strided_iterator<Iterator> to API reference
2016-08-26 23:59:22 +02:00
Jakub Szuppe
9496721421
Fix transform() description
2016-08-26 23:55:46 +02:00
Kyle Lutz
886205fdcf
Merge pull request #651 from haahh/fix_minmax_element
...
Fix minmax_element() and add test for it
2016-08-23 21:53:24 -07:00
Jakub Szuppe
3196b71273
Fix minmax_element() and add test for it
...
Remove useless Compare template parameter and add
test for minmax_element().
2016-08-23 21:27:32 +02:00
Kyle Lutz
d2d455e97a
Merge pull request #648 from haahh/small_fixes
...
Misc fixes
2016-08-22 21:20:02 -07:00
Jakub Szuppe
2bd90c6392
Fix C4267 warn. when compiling with MSVC, OpenCL 2.0
2016-08-22 18:57:36 +02:00
Jakub Szuppe
45ea54f704
Fix gather algorithm
2016-08-22 18:55:20 +02:00
Jakub Szuppe
544242744c
Fix typo in wait_list
2016-08-22 18:55:20 +02:00
Jakub Szuppe
6cd0222bbd
Fix typo in context.hpp
2016-08-22 18:55:20 +02:00
Kyle Lutz
8cbe8b30c3
Merge pull request #642 from dPavelDev/master
...
Fixed unnecessary reallocation in vector::resize() when size == capacity
2016-08-15 18:36:33 -07:00
Kyle Lutz
5c1b688cca
Merge pull request #640 from haahh/pr_system_platforms_fix
...
Fix system::platforms()
2016-08-15 18:36:07 -07:00
dPavelDev
7fc6e47970
Fixed unnecessary reallocation in vector::resize() when size == capacity
2016-08-15 14:10:15 +03:00
Jakub Szuppe
90861687d1
Fix system::platforms()
...
The 2nd call to clGetPlatformsIDs crashed when there
were no OpenCL platforms because then count variable was 0
and clGetPlatformIDs specification says: "If platforms is
not NULL, the num_entries must be greater than zero".
2016-08-12 11:58:49 +02:00
Kyle Lutz
882277f735
Merge pull request #638 from boostorg/fix-warnings
...
Fix warnings
2016-08-06 11:42:38 -07:00
Kyle Lutz
05ab43ed58
Cast index argument to cl_uint in kernel::get_arg_info()
...
This casts the 'index' argument in kernel::get_arg_info() to cl_uint
in order to match the signature for clGetKernelArgInfo(). This fixes
the "conversion from 'size_t' to 'cl_uint', possible loss of data"
compiler warning.
2016-08-03 20:16:19 -07:00
Kyle Lutz
6688e92f07
Change size_t argument to uint_ in opengl_enqueue_*_gl_objects() functions
...
This changes the opengl_enqueue_*_gl_objects() functions to take their
'num_objects' argument as 'uint_' instead of 'size_t'. This fixes the
"conversion from 'size_t' to 'cl_uint', possible loss of data" compiler
warnings from MSVC.
2016-07-30 18:28:41 -07:00
Kyle Lutz
c4b3793be1
Ignore unused arguments in kernel::set_arg_svm_ptr()
...
This ignores unused arguments in the kernel::set_arg_svm_ptr()
when compiled without OpenCL 2.0 support. This fixes the "unused
parameter" compiler warning.
2016-07-30 18:19:26 -07:00
Kyle Lutz
75daaf67d1
Remove const from return type of context_error::get_private_info_size()
...
This removes the const specifier from the return type of the
context_error::get_private_info_size() method. This fixes the "type
qualifiers ignored on function return type" compiler warning.
2016-07-30 18:14:56 -07:00
Kyle Lutz
b8fdabab19
Merge pull request #636 from dPavelDev/develop
...
Fixed bug in opengl_create_shared_context
2016-07-27 21:14:38 -07:00
Kyle Lutz
b4f8494ec2
Merge pull request #634 from haahh/pr_scan_on_cpu
...
Scan for multicore CPUs
2016-07-27 21:13:05 -07:00
dPavelDev
e978396b21
Fixed bug in opengl_create_shared_context
2016-07-27 14:36:57 +03:00
Jakub Szuppe
979ec52351
Add more tests for scan
2016-07-25 22:37:17 +02:00
Jakub Szuppe
790dcab387
Fix benchmark for std::partial_sum()
...
In partial_sum benchmark for STL std::parial_sum() should not
be run in-place since benchmarks for other libs are not run
in-place.
2016-07-25 22:37:17 +02:00
Jakub Szuppe
32dc57bbf9
Add scan for multicore CPUs
2016-07-25 22:37:17 +02:00
Jakub Szuppe
cd5bb606ec
Rename scan_on_cpu to serial_scan
2016-07-25 15:28:19 +02:00
Kyle Lutz
1d2f8cfbd9
Merge pull request #633 from haahh/pr_find_extrema_cpu
...
find_extrema for CPUs
2016-07-20 22:23:51 -07:00
Kyle Lutz
813a63c4ca
Merge pull request #632 from haahh/pr_various_test_fixes
...
Various fixes
2016-07-20 22:16:03 -07:00
Jakub Szuppe
06124180dc
Fix find_extrema_with_reduce()
...
It fixes wrong type of variable representing index.
2016-07-17 13:24:07 +02:00
Jakub Szuppe
934257b97d
Add more tests for find_extrema algorithms
2016-07-17 13:24:07 +02:00
Jakub Szuppe
4c21633bf9
Fix vector copy ctor when using non-default context
...
Now correct queue (from correct context) is used in copy
constructor of boost::compute::vector.
2016-07-17 00:01:47 +02:00
Jakub Szuppe
2af23fa7e9
Change various tests to work with non-default context
...
Now all tests work even if Context::context, Context::device,
Context::queue are not default context, device and queue. This
is required for developing better tests in the future.
Note: Some tests may work only for default context/queue/device
since classes that they test work only for default context/q/d.
There are two solutions for this problem: either those tests run
on default queue (no matter what) or they does not run when
Context::context is not the default context. See test_string.cpp.
2016-07-16 20:30:28 +02:00
Jakub Szuppe
fb641de7cc
Add operator= for vectors with different allocator
...
Now code: `vector<T> a(context); vector<T, OtherAlloc> b(context);
a = b;` works.
2016-07-16 20:14:14 +02:00
Jakub Szuppe
8ae5cc9117
Array should always use queue from its context
...
Until now boost::compute::array worked correctly only
for default context (global) since it was using default
queue (global) for all its operations. Now it uses queue
from its context.
2016-07-16 19:30:25 +02:00
Jakub Szuppe
b810d12aea
Making sure serial_reduce_threshold is in the right range
...
Parameter serial_reduce_threshold for reducing on CPU
should be always greater or equal to the number of compute units
(cores) in the CPU.
2016-07-16 13:02:34 +02:00