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

441 Commits

Author SHA1 Message Date
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
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
Jason Rhinelander
9b2c65fee9 Work around libc++ bug 17782
libc++ fails to extract a valid float/double literal when it is followed
by any special characters that can also be found in a float value,
in this case, f (https://llvm.org/bugs/show_bug.cgi?id=17782).

This commit works around the problem by not putting the "f" suffix into
the string for extraction.
2016-05-03 10:21:02 -04:00
Jason Rhinelander
d02b36e735 Simplify literal conversion tests
The tests are failing under OS X/clang, but it isn't obvious to me why.
This commit simplifies the test code by ignoring the stringstream I/O
status, and reorganizes it to be clearer whether it's the initial
conversion to string that is failing, or the subsequent conversion back
from string.
2016-05-03 10:21:02 -04:00
Jakub Szuppe
5e28138a7a Update minimum required Boost version to 1.54 2016-05-03 14:32:22 +02:00
Kyle Lutz
51afcd0c22 Merge pull request #602 from boostorg/reduce-uchar-to-float-test
Add test for reduce() with uchar to float
2016-05-02 19:44:18 -07:00
Kyle Lutz
90130f8376 Merge pull request #603 from boostorg/fix-sign-comparison-warning
Fix sign comparison warning in test_literal_conversion
2016-05-02 19:43:21 -07:00
Kyle Lutz
71f1d0d441 Add specializations for kernel::get_arg_info() 2016-04-30 10:32:13 -07:00
Kyle Lutz
d15cb3314b Fix sign comparison warning in test_literal_conversion 2016-04-30 09:21:44 -07:00
Kyle Lutz
0b3d80c35a Add test for reduce() with uchar to float 2016-04-29 20:06:52 -07:00
Kyle Lutz
3c2bbbe845 Merge pull request #597 from haahh/pr_fix_find_end
Fix find_end algorithm
2016-04-25 21:37:46 -07:00
Kyle Lutz
ecdb24ef86 Merge pull request #595 from haahh/pr_fix_uni_real_dist
Fix uniform real distribution
2016-04-25 21:35:23 -07:00
Jakub Szuppe
55bea58790 Add test for values generated by uniform real dist
New test checks if values generated by uniform real
distribution are in the [a,b) interval.
2016-04-25 19:46:09 +02:00
Jason Rhinelander
7f18293526 Increase make_literal precision
make_literal is losing some precision when making literal floating
point values because it uses digits10, but that only gives us the
number of decimal digits that will survive a decimal->native>decimal
conversion; what we are doing is a native->decimal->native conversion,
which requires the user of ::max_digits10 (which is 2 (double) or 3
(float) larger than ::digits10).

max_digits10 is a c++11 feature, however, so this commit uses
digits10 + 3 when the c++11 numeric_limits isn't available.
2016-04-24 17:32:55 -04:00
Jakub Szuppe
b18b5dbe8b Fix test_find_end test
We have to use the same queue in the whole test.
2016-04-24 21:46:07 +02:00
Jakub Szuppe
f29bbda7f8 Tests for radix sort in desc order 2016-04-23 18:24:24 +02:00
Kyle Lutz
a832380b0b Add test for mean and variance of normal_distribution 2016-04-22 18:51:43 -04:00
Kyle Lutz
3d9fd19350 Merge pull request #585 from bwitherspoon/wait-list-initializer-list
Add initializer list constructor to wait_list
2016-04-18 14:51:16 -07:00
Brett Witherspoon
8f449cde4b Add initializer list constructor to wait_list 2016-04-17 02:59:51 -05:00
Jakub Szuppe
796c5d4629 Fix tests for clSetMemObjectDestructorCallback() 2016-04-10 12:42:35 +02:00
Kyle Lutz
da71051593 Merge pull request #573 from haahh/pr_stable_sort_by_key
Add stable_sort_by_key()
2016-03-18 19:36:22 -07:00
Jakub Szuppe
af58463ad9 Add tests for radix_sort_by_key() 2016-03-16 15:07:53 +01:00
Jakub Szuppe
a127310d73 Add test for stable_sort_by_key() 2016-03-16 15:07:28 +01:00
Jakub Szuppe
b3224ea753 Misc. strided_iterator changes 2016-03-16 13:16:14 +01:00
Kyle Lutz
38ba1c5447 Merge pull request #566 from haahh/update-test-jamfilev2
Update tests compile options in Jamfile.v2
2016-03-10 13:04:02 -08:00
Kyle Lutz
fe816c5acf Merge pull request #571 from haahh/win-related-changes
Windows related changes
2016-03-10 10:14:03 -08:00
Jakub Szuppe
3826e9cae4 Misc fixes 2016-03-09 18:56:17 +01:00
Jakub Szuppe
8bc763cd53 MSVC/WIN-related update of CMakeLists.txt files
This commit fixes misc. bugs in CMakeLists.txt files that
were causing various build errors and warnigns.
2016-03-09 18:56:16 +01:00
Jakub Szuppe
c41c1d98b1 Link OpenCL in FreeBSD in test/Jamfile.v2 2016-03-09 17:08:59 +01:00
Jakub Szuppe
fec8913be2 Remove redundant compile option
Remove redundant -Wno-deprecated-declaration (msvc: wd4996) compile
option from Travis-CI builds and test/Jamfile.v2.
2016-03-09 17:08:58 +01:00
Jakub Szuppe
1653a06f90 Suppress OpenCL-related deprecated declarations warns
Suppress deprecated declarations warnings (for MSVC, GCC and Clang)
caused by deprecated OpenCL Runtime functions.
2016-03-09 17:08:45 +01:00
Jakub Szuppe
a1895728a1 Use custom FindOpenCL.cmake only for cmake older than 3.1 2016-03-09 15:30:02 +01:00
Jakub Szuppe
112537a8cb Update tests compile options in Jamfile.v2
Different compilers have different options to suppress the same
warnings.
2016-03-09 14:57:50 +01:00
Kyle Lutz
03dc34b820 Add type_name() support for OpenGL types 2016-03-07 19:52:32 -08:00
Jakub Szuppe
4bc8a13b46 clLinkProgram and clCompileProgram unimplemented in POCL 2016-02-25 22:39:31 +01:00
Jakub Szuppe
11d445a1f5 POCL does not support clSetMemObjectDestructorCallback 2016-02-16 21:28:25 +01:00
Kyle Lutz
9f1766dd17 Fix counting_iterator with unsigned types 2016-01-18 20:53:41 -08:00
Kyle Lutz
3466881454 Merge pull request #548 from haahh/timberosx_fixes
Timber OSX fixes
2016-01-13 10:56:58 -08:00
Jakub Szuppe
6396530a2b Fix comparison between signed and unsigned integer 2016-01-07 20:54:54 +01:00
Jakub Szuppe
d142a36e98 Fix unsigned integer type to uint_ 2016-01-07 17:46:31 +01:00
Kyle Lutz
a2a5850948 Merge pull request #547 from Flast/fix-tests
Fix missing includes.
2016-01-05 20:52:07 -08:00
Kohei Takahashi
2dc156d964 Fix missing includes. 2016-01-05 09:47:40 +09:00
Kyle Lutz
6f29b3c4f9 Merge pull request #546 from okdshin/mt_rng_copy_ctor_spike
remove bad tab
2015-12-28 17:03:39 -08:00
Kyle Lutz
767c5beba8 Merge pull request #545 from okdshin/fix_linear_congruential_rng_copy
Modify linear_congruential_engine to copy its all states.
2015-12-28 12:28:58 -08:00
okdshin
d869d839b1 add linear_congruential rng copy ctor and assign op test 2015-12-29 00:50:11 +09:00
okdshin
9e0fabe4ae remove bad tab 2015-12-28 00:13:53 +09:00
okdshin
babfbafad6 Modify mersenne_twister_engine to copy its states. 2015-12-27 04:24:55 +09:00
Kyle Lutz
cb863b91a6 Add program::create_with_source() with vector of strings 2015-12-04 20:37:13 -08:00
Kyle Lutz
c983cc3a48 Merge pull request #535 from olivas/create_with_source_file
program::create_with_source_file doesn't fail with bad input
2015-11-19 19:39:58 -08:00