2
0
mirror of https://github.com/boostorg/compute.git synced 2026-02-21 15:02:23 +00:00
Commit Graph

511 Commits

Author SHA1 Message Date
Kyle Lutz
d36ef02b78 Merge pull request #742 from jszuppe/fix_strided_iter_tag
Fix strided_iterator tag
2017-09-12 05:22:47 +02:00
Jakub Szuppe
48c9e86479 Fix strided_iterator's iterator_category
Using std::iterator_traits<> to get iterator tag prevents
from converting STL iterator tag to Boost tag.
2017-09-10 23:24:55 +02:00
Jakub Szuppe
6c2a3604b9 Implement vector::shrink_to_fit() 2017-06-17 17:44:26 +02:00
Kyle Lutz
251d02b17d Merge pull request #731 from jszuppe/pr_svm_migrate_mem
Add wrapper for clEnqueueSVMMigrateMem()
2017-06-11 13:18:47 -07:00
Jakub Szuppe
f568c447e3 Add wrapper for clEnqueueSVMMigrateMem() 2017-06-11 08:19:35 +02:00
Jakub Szuppe
cb534cdfa2 Add clSetDefaultDeviceCommandQueue wrapper 2017-06-04 14:46:05 +02:00
Jakub Szuppe
725a8fa8e8 Add tests for device timer methods 2017-05-27 18:05:01 +02:00
Jakub Szuppe
d1bc634fc5 Add tests for creating program with IL
For testing boost::compute::program::create_with_il() 32- and 64-bit
SPIR-V binaries were added to test/data dir. File test/data/program.cl
contains OpenCL C source code of those binaries.
2017-05-23 00:06:12 +02:00
Jakub Szuppe
8979846ba0 Merge pull request #720 from jszuppe/pr_kernel_clone
Add clCloneKernel() wrapper
2017-05-16 10:51:51 +02:00
Janusz Rupar
da05ba9631 vector::reserve() implemented
Fixes bug #687
2017-05-14 11:32:33 +02:00
Jakub Szuppe
24bbb350bb Add clone() to kernel class
This adds wrapper for clCloneKernel() OpenCL 2.1 API
function to the kernel class.
2017-05-12 21:38:24 +02:00
Jakub Szuppe
499689dd05 Fix test_vector.cpp
We have to sync buffer with queue.finish() before
reading it with another command queue.
2017-05-09 20:26:09 +02:00
Jakub Szuppe
2fcaa8db15 Fix test_for_each.cpp 2017-05-09 19:10:36 +02:00
Jakub Szuppe
1bee0169ba Add tests for get_sub_group_info() 2017-05-07 11:56:25 +02:00
Jakub Szuppe
9d0b9410f7 Fix test in test_device.cpp 2017-04-26 11:22:44 +02:00
Jakub Szuppe
a4a3982e1c Fix test_flat_set.cpp test 2017-04-26 11:22:44 +02:00
Jakub Szuppe
97f78d50b9 Fix test_is_permutation.cpp test 2017-04-26 11:22:44 +02:00
Jakub Szuppe
43f3634378 Fix test_random_shuffle.cpp test 2017-04-26 11:22:44 +02:00
Jakub Szuppe
ebc1ddfcbd Fix test_pair.cpp test 2017-04-26 11:22:44 +02:00
Jakub Szuppe
ca75931466 Use BOOST_COMPUTE_CL_VERSION_X_Y in tests 2017-04-23 20:11:10 +02:00
Jakub Szuppe
f06aed04c6 Fix #484
Some tests should not be run if macro
BOOST_COMPUTE_NO_HDR_INITIALIZER_LIST is defined.
2017-04-08 18:19:43 +02:00
Jakub Szuppe
c21f705a2a Test sort_by_key with custom struct values 2017-04-02 17:18:04 +02:00
Adam Wulkiewicz
f68111457d Use 'obj' rule instead of 'compile' in opencl availability test.
The use of 'compile' rule interferes with --dump-tests option of b2 and prevents correct running of tests in some of the other Boost libraries.
2017-03-30 00:17:28 +02:00
Jakub Szuppe
6f9e6cf650 Merge pull request #658 from Slonegg/compile_program_with_headers
added headers to program::compile
2017-03-29 21:31:21 +02:00
Kyle Lutz
a76d6a97d7 Merge pull request #696 from haahh/pr_amd_svm_fixed_on_win
AMD SVM bug was fixed on Windows
2017-03-27 19:18:40 -07:00
Jakub Szuppe
587720e221 AMD SVM bug fixed on Win 2017-03-22 18:48:16 +01:00
Kyle Lutz
d8beaaf227 Merge pull request #694 from haahh/pr_vs_fixes
Various fixes for Visual Studio
2017-03-20 20:11:12 -07:00
Kyle Lutz
e370e6acae Merge pull request #693 from haahh/pr_fix
Various fixes
2017-03-20 20:07:52 -07:00
Kyle Lutz
d2132e4ce5 Merge pull request #689 from Flast/check-opencl-availability
Check opencl availability on test.
2017-03-20 20:01:32 -07:00
Jakub Szuppe
2d604e7656 Fix: isinf is ambiguous in VS2015 2017-03-18 15:22:22 +01:00
Jakub Szuppe
d0f3e50a32 Fix issue #683
Make sure variable type is kept when
stringifying its value in bc::lambda.
2017-03-17 21:44:00 +01:00
Jakub Szuppe
50bf39c300 Remove a race condition from test
Event can be complete before wait_guard.
2017-03-17 21:41:55 +01:00
Jakub Szuppe
cb9fd9dfb5 Fix destructor_callback test
It must be thread-safe.
2017-03-16 22:25:29 +01:00
Kohei Takahashi
1da7245d0f Check opencl availability on test. 2017-02-01 23:38:16 +09:00
Jakub Szuppe
e25bb7d99d POCL does not have remquo() OpenCL built-in func impl 2016-09-24 22:31:58 +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
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
Jakub Szuppe
45ea54f704 Fix gather algorithm 2016-08-22 18:55:20 +02:00
Jakub Szuppe
979ec52351 Add more tests for scan 2016-07-25 22:37:17 +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
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
Kyle Lutz
6e3213bfcf Merge pull request #628 from haahh/pr_reduce_cpu
Reduce for CPU
2016-07-11 20:16:19 -07:00
Thomas Trummer
68d373c38a Add missing include for std::cerr (on macOS) 2016-07-10 18:38:23 +02:00
Jakub Szuppe
585eb747a0 More tests for adjacent difference 2016-07-09 14:11:01 +02:00