2
0
mirror of https://github.com/boostorg/compute.git synced 2026-02-18 01:52:20 +00:00
Commit Graph

1128 Commits

Author SHA1 Message Date
Kyle Lutz
04e7dde220 Merge pull request #617 from haahh/pr_travis_ci_boost161
Add Travis CI build with latest Boost libs
2016-06-03 20:09:32 -07:00
Jakub Szuppe
c046a5f976 Remove unnecessary source from Travis CI build 2016-06-02 20:00:23 +02:00
Jakub Szuppe
e213006ba2 Cache built Boost libraries 2016-06-02 20:00:23 +02:00
Jakub Szuppe
18146f2fb7 Add Travis CI build with the latest Boost (1.61) 2016-06-02 20:00:05 +02:00
Jakub Szuppe
f669581f02 Travis CI: move downloading cmake to the install step 2016-06-01 15:49:46 +02:00
Kyle Lutz
4c31d07130 Merge pull request #616 from haahh/pr_typesafe_copy
Type-safe copying
2016-05-31 21:26:41 -07:00
Jakub Szuppe
8f4db3d7b7 Reuse dispatch_copy_async() in dispatch_copy() 2016-05-28 22:54:51 +02:00
Jakub Szuppe
bffc9f74fb Fix async copying when first == last (input is empty) 2016-05-28 22:46:35 +02:00
Jakub Szuppe
c9a0aba172 Remove debug macro, fix names of event variables 2016-05-28 22:05:50 +02:00
Jakub Szuppe
69e09f27d8 Minor fixes in test_copy.cpp 2016-05-28 13:15:36 +02:00
Jakub Szuppe
ba0da3f3f4 Tests for copying SVM memory when types mismatch
Tests for copying SVM memory to/from/on device when
value_types of InputIterator and OutputIterator mismatch.
2016-05-28 13:15:36 +02:00
Jakub Szuppe
5c29b50823 Coping SVM to/from host by mapping SVM memory 2016-05-28 13:15:36 +02:00
Jakub Szuppe
753f883321 Support for svm_ptr<T> in meta_kernel 2016-05-28 13:15:36 +02:00
Jakub Szuppe
4280024f26 Now svm_ptr<T> keeps its context
This commit modifies svm_ptr<T> to keep its context. It is
convenient for the users and enables creating
svm_ptr_index_expr<T, IndexExpr> class.
2016-05-28 13:15:36 +02:00
Jakub Szuppe
933ff15ce5 Better names for tests 2016-05-28 13:15:36 +02:00
Jakub Szuppe
aaaaca4ed2 Type-safe async coping from device to host 2016-05-28 13:15:36 +02:00
Jakub Szuppe
3dcbd4c001 Fix async coping svm_ptr<> from/to/on device 2016-05-28 13:15:36 +02:00
Jakub Szuppe
7461c92fdc Add test for async coping with svm_ptr<> 2016-05-24 21:37:29 +02:00
Jakub Szuppe
55ac7da9d8 Fix test in test_functional_as.cpp
At the end of test we should read from input vector
(not output) in order to check if transform() with
as<int>() was performed correctly.
2016-05-24 21:37:29 +02:00
Jakub Szuppe
2187821975 Make sure there's no macro redefinition 2016-05-24 21:37:29 +02:00
Jakub Szuppe
1419b7d36f Type-safe copying from device to host
Type-safe copying from device to host. Seperate copying
algorithm device -> host for non-contiguous OutputIterator (host).
2016-05-24 21:37:29 +02:00
Jakub Szuppe
ce8230b6f5 Coping from host for non-contiguous iterators (host)
When InputIterator (host) is a non-contiguous iterator we don't
need a separate algorithm for cases when value_types of InputIterator
and OutputIterator (device) do not match and cases when they do
match.
2016-05-21 17:16:13 +02:00
Jakub Szuppe
7c3d0c20e9 Add tests for coping on device with mismatched types 2016-05-21 16:58:31 +02:00
Jakub Szuppe
d12e07c0e9 Fix type-safety issues for async copying host->device 2016-05-21 16:58:15 +02:00
Jakub Szuppe
3493b750e8 Fix type, long_ and long might be different types 2016-05-21 16:57:45 +02:00
Jakub Szuppe
bba6c61ed4 Add tests for copying host->device with mismatched types 2016-05-21 16:52:05 +02:00
Jakub Szuppe
a830531445 Fix type-safety issues when copying host->device 2016-05-21 16:44:44 +02:00
Kyle Lutz
d41ff00c06 Merge pull request #613 from haahh/pr_discrete_distribution
Default constructor for discrete distribution
2016-05-12 20:23:25 -07:00
Jakub Szuppe
56ad192b92 Now discrete_distribution generates IntType values
Class discrete_distribution should generate values of type
IntType. Until now it always generated unsigned int values.
2016-05-11 08:30:46 +02:00
Jakub Szuppe
650e828542 Add more tests for discrete_distribution 2016-05-11 08:30:45 +02:00
Jakub Szuppe
227c05cbdc Add min() and max() methods for discrete_distribution 2016-05-11 08:30:44 +02:00
Jakub Szuppe
e9b2c0ff4b Add default constructor for discrete_distribution 2016-05-11 08:30:41 +02:00
Jakub Szuppe
1799ee1b6e Support for first==last in discrete_distribution range ctor
Add support for the case with first iterator being equal
to last iterator in range ctor. Now it behaves like ctor in
std::discrete_distribution.
Additionaly: now method probabilities() returns correct vector
of probabilities.
2016-05-11 08:30:39 +02:00
Kyle Lutz
c173bf02e3 Merge pull request #611 from haahh/pr_coveralls_build
Dedicated build for coveralls
2016-05-10 22:06:55 -07:00
Kyle Lutz
d172c8020e Merge pull request #610 from haahh/pr_osx
OSX
2016-05-09 21:46:09 -07:00
Jakub Szuppe
476b15933d Remove redundant Travis-CI build
Remove redundant Travis-CI AMD APP SDK 2.9.1, OpenCL 1.2
build (the Coveralls build has the same test environment,
except for Linux version).
2016-05-09 12:42:14 +02:00
Jakub Szuppe
a18f7a6dd9 Don't push coverage of tests to the Coveralls
Coverage info of tests should not be pushed to
the Coveralls service.
2016-05-09 12:42:14 +02:00
Jakub Szuppe
d57a81d2cd One dedicated build for coveralls
Instead of enabling coverage analysis in every
build now we have one dedicated build (Trusty,
g++ 4.8, AMD APP SDK v3.0, OpenCL 2.0).
2016-05-09 12:34:35 +02:00
Jakub Szuppe
13e173c97e Failures not allowed on OSX Travis-CI build 2016-05-05 14:35:21 +02:00
Jakub Szuppe
57ea7d85df Skipping resize_throw_exception test on Apple
From tests on Travis-CI it seems that on Apple OpenCL platform
clCreatBuffer() does not return NULL and does not set error to
CL_INVALID_BUFFER_SIZE when size of the buffer memory object is
greater than CL_DEVICE_MAX_MEM_ALLOC_SIZE.
2016-05-05 14:23:28 +02:00
Jakub Szuppe
0fe1ab3e24 Add type checks for distributions
This commit adds asserts that check if used template
type is correct (is integral, is a floating point type).
2016-05-05 14:23:28 +02:00
Jakub Szuppe
38b75f920c Fix boost::compute::discrete_distribution constructor 2016-05-05 14:23:28 +02:00
Jakub Szuppe
6412cb2cc6 Fix typos in test_lambda.cpp 2016-05-05 14:23:28 +02:00
Jakub Szuppe
e199304780 Turn off inplace_reduce and radix_sort tests on Apple
Tests for inplace_reduce, radix_sort and radix_sort_by_key are disabled
for CPU devices on Apple platform because for CPU devices on Apple
platform when local memory is used in a kernel, local work group size
must be [1;1;1]. Those algorithms are designed for GPU devices,
therefore we do no lose any functionality.
2016-05-05 14:23:28 +02:00
Jakub Szuppe
968056c653 Adapt command queue test to different devices
Not every device allows for local work group size to be
greater than [1;1;1].
2016-05-05 14:23:28 +02:00
Jakub Szuppe
af7b197e68 Skip matrix transpose example on Apple CPU devices 2016-05-05 14:21:54 +02:00
Kyle Lutz
dc7bfa0252 Merge pull request #609 from haahh/pr_copy_buffer_for_device_ptr
Enable copying with copy buffer op for device_ptr
2016-05-03 20:58:09 -07:00
Kyle Lutz
7b4e652ff7 Merge pull request #608 from haahh/pr_remove_deprecated_macros
Remove deprecated macros
2016-05-03 19:33:53 -07:00
Kyle Lutz
8cb06e1954 Merge pull request #607 from jagerman/literal-simplify-test
Literal test simplification
2016-05-03 19:31:32 -07:00
Jakub Szuppe
02e12b40fd Enable copying with copy buffer op for device_ptr
This commit enables copying data using clEnqueueCopyBuffer()
in boost::compute::copy() algorithm for device_ptr<>.
2016-05-03 21:39:19 +02:00