Commit Graph

21 Commits

Author SHA1 Message Date
Jakub Szuppe
ca75931466 Use BOOST_COMPUTE_CL_VERSION_X_Y in tests 2017-04-23 20:11:10 +02:00
Thomas Trummer
68d373c38a Add missing include for std::cerr (on macOS) 2016-07-10 18:38:23 +02:00
Jakub Szuppe
acf83372db Fix OpenCL2.0 test cases in test_fill and test_svm_ptr 2015-10-24 21:15:44 +02:00
Kyle Lutz
bc83a43045 Merge pull request #521 from boostorg/fix-test-fill
Skip fill() tests with double if not supported by device
2015-10-10 07:58:59 -07:00
Kyle Lutz
dba4da7dcd Skip fill() tests with double if not supported by device
This skips the tests for fill() and fill_n() with double values
if the device does not support the cl_khr_fp64 extension.
2015-10-01 22:49:43 -07:00
Jakub Szuppe
1b059f8100 Runtime OpenCL version check in tests 2015-09-24 15:44:52 +02:00
Jakub Szuppe
7894d1f7c0 Add missing queue and context parameters in tests 2015-07-02 22:20:42 +02:00
Jakub Szuppe
1ddd124495 Add fill() and fill_n() tests for every built-in type 2015-05-25 16:11:24 +02:00
Kyle Lutz
fda67a22d0 Update GitHub links 2015-05-17 20:32:09 -07:00
Kyle Lutz
872dea05ef Add test for fill() with empty range 2014-09-29 20:01:21 -07:00
Kyle Lutz
ec254c04bb Add OpenCL 2.0 support 2014-09-13 12:29:03 -07:00
Denis Demidov
201f85a038 Skip tests requiring OpenCL 1.2 on usupported devices 2014-07-12 22:54:16 +04:00
Kyle Lutz
d30dcfb564 Use clEnqueueWriteBuffer() for writing single values with fill() 2014-06-06 23:10:27 -07:00
Kyle Lutz
667aa9c200 Add buffer::clone() method 2014-03-20 23:31:41 -07:00
Kyle Lutz
dacdbf0ffd Bug in fill() with uchar4 2014-02-22 10:51:39 -08:00
Kyle Lutz
b17888b604 Move future header to async directory 2014-01-06 18:44:37 -08:00
Kyle Lutz
220d0df600 Add test for fill() command type
This adds a test to ensure the fill() algorithm uses the
clEnqueueFillBuffer() function if supported.
2013-07-02 21:57:19 -04:00
Kyle Lutz
4ab37ada07 Add system-wide default command queue
This adds a system-wide default command queue. This queue is
accessible via the new static system::default_queue() method.
The default command queue is created for the default compute
device in the default context and is analogous to the default
stream in CUDA.

This changes how algorithms operate when invoked without an
explicit command queue. Previously, each algorithm had two
overloads, the first expected a command queue to be explicitly
passed and the second would create and use a temporary command
queue. Now, all algorithms take a command queue argument which
has a default value equal to system::default_queue().

This fixes a number of race-conditions and performance issues
througout the library associated with create, using, and
destroying many separate command queues.
2013-05-15 20:59:56 -04:00
Kyle Lutz
1b9e904cc7 Add CHECK_RANGE_EQUAL() test macro
This adds a new macro for the unit-tests which checks a range of
values on the device against an array of values on the host. This
simplifies writing tests and removes the need to explicitly copy
values back to the host for verification.
2013-05-13 23:06:40 -04:00
Denis Demidov
5d77bbebee Global setup for OpenCL context in tests
refs kylelutz/compute#9

device, context, and queue are initialized statically in `context_setup.hpp`.
With this change all tests are able to complete when an NVIDIA GPU is in
exclusive compute mode.

Side effect of the change:
Time for all tests to complete reduced from 15.71 to 13.03 sec Tesla C2075.
2013-04-19 14:53:59 +04:00
Kyle Lutz
d34cdaac59 Initial commit 2013-03-02 15:14:17 -05:00