Commit Graph

1404 Commits

Author SHA1 Message Date
Kyle Lutz
6de0b65d18 Improve documentation 2014-02-02 11:32:49 -08:00
Kyle Lutz
f3c2384af4 Add opengl_create_shared_context() function 2014-02-01 12:27:23 -08:00
Kyle Lutz
0c88eca831 Add platform::id() method 2014-02-01 12:17:21 -08:00
Kyle Lutz
9a0aa33c2f Make platform::get_extension_function_address() const 2014-02-01 12:15:53 -08:00
Kyle Lutz
32379dd836 Fix bug with opengl_sphere example on AMD 2014-02-01 12:10:58 -08:00
Kyle Lutz
881d398fff Use glDrawArrays() in opengl_sphere example 2014-02-01 12:10:12 -08:00
Kyle Lutz
ccd6f21d98 Change vector constructors to take queue argument
This changes the vector<T> constructors which copy or initialize
data to take a queue argument used for performing the operations.

Previously they just took a context argument used to initialize the
buffer and then created a new command queue to use. This improves
performance by not requiring a new command queue and also fixes issues
when performing operations on a different command queue while the
vector was still being initialized.
2014-01-27 23:39:19 -08:00
Kyle Lutz
bc8aa0e9d5 Skip generate_pair test on AMD
This skips the generate_pair test on AMD which does not
properly support struct assignment. Before this patch the
test would fail with "UNREACHABLE executed!" and a SIGABRT.
2014-01-26 18:52:58 -08:00
Kyle Lutz
f235e59e82 Add inline_ptx example 2014-01-20 20:05:34 -08:00
Kyle Lutz
3be0ae78d8 Add batched_determinant example 2014-01-20 19:43:09 -08:00
Kyle Lutz
47922aa780 Add Boost version check to config.hpp
This adds a compile-time check to config.hpp which ensures
that the miniumum supported Boost version (1.48) is found.
2014-01-20 18:31:18 -08:00
Kyle Lutz
dc20f09d92 Add make_tuple() lambda function 2014-01-14 22:18:35 -08:00
Kyle Lutz
ea7c2bf2f4 Add make_pair() lambda function 2014-01-14 22:03:48 -08:00
Kyle Lutz
c784ae994e Add third lambda placeholder 2014-01-14 22:00:22 -08:00
Kyle Lutz
46ef3fffb5 Make lambda function expressions variadic 2014-01-14 21:58:09 -08:00
Kyle Lutz
c57e1953d8 Make lambda get<N>() variadic 2014-01-14 21:54:54 -08:00
Kyle Lutz
8aad57612b Make function_signature_to_mpl_vector<> meta-function variadic 2014-01-14 21:52:34 -08:00
Kyle Lutz
e313aae6f7 Rename lambda result test functions to check_lambda_result() 2014-01-14 21:48:33 -08:00
Kyle Lutz
72664c8de9 Add test for generate() with pair<T1, T2> 2014-01-14 21:31:51 -08:00
Kyle Lutz
1dd35de225 Fix sign comparison warnings in tests 2014-01-14 21:29:25 -08:00
Kyle Lutz
68412f5ae0 Refactor function handling in lambda expressions 2014-01-13 18:27:57 -08:00
Kyle Lutz
936d801466 Add support for host iterators to sort() 2014-01-13 18:27:52 -08:00
Kyle Lutz
413267b32a Improve accumulate() performance
This improves the performance for the accumulate() algorithm
for types/operations that can be performed with reduce().
2014-01-13 18:27:48 -08:00
Kyle Lutz
8bb13c9473 Add link to examples directory in README 2014-01-13 18:27:44 -08:00
Kyle Lutz
ac148e8f1f Fix extra semicolon warning in interop/eigen/core.hpp 2014-01-13 18:27:40 -08:00
Kyle Lutz
4bed4b0626 Merge pull request #52 from ddemidov/max_arity_to_config
Move BOOST_COMPUTE_MAX_ARITY definition to compute/config.hpp
2014-01-09 23:26:50 -08:00
Denis Demidov
5e912dff1c Move BOOST_COMPUTE_MAX_ARITY definition to compute/config.hpp 2014-01-10 09:55:35 +04:00
Kyle Lutz
1976962ece Merge pull request #51 from ddemidov/roomy_zip_iterator
Make zip_iterator take more than three elements
2014-01-09 11:57:39 -08:00
Denis Demidov
52bae83504 Make zip_iterator take more than three elements
This uses Boost.Preprocessor macros to allow zip iterators to work with
arbitrary number of elements (the current limit is maximum boost::tuple
size which is 10 by default).

Refs #50
2014-01-09 23:39:58 +04:00
Kyle Lutz
8379faec11 Merge pull request #49 from ddemidov/sha1-for-online-cache
Use SHA1 for online cache keys
2014-01-07 11:10:10 -08:00
Denis Demidov
d24749ae52 Use SHA1 for online cache keys
This makes online cache use sha1 of the program source as key.
Introduces boost::compute::detail::sha1() function, which is moved
from compute::program into its own header file.
2014-01-07 23:07:18 +04:00
Kyle Lutz
6f52e3ce1f Merge pull request #46 from ddemidov/offline-cache
Use the original program source for program creation/compilation
2014-01-07 10:11:08 -08:00
Kyle Lutz
d3bc213e9c Merge pull request #47 from ddemidov/multiple-objects
Fix linkage problem with detail::getenv()
2014-01-07 10:10:14 -08:00
Denis Demidov
41d2052c2a Fix linkage problem with detail::getenv()
detail::getenv() function was not declared inline, which led to
`multiple definition` errors at link time when a program consisted of
multiple objects that included Boost.Compute headers.

Fixed the problem and added core.multiple_objects test.
2014-01-07 21:29:18 +04:00
Denis Demidov
f519ad3639 Use the original program source for program creation/compilation
Instead of building the program from source with the added comment
block (used for distinction between different platforms and devices
when offline cache is in use), only use the altered source for the
hash computation. This way users will not get unexpected results from
program.source().
2014-01-07 21:05:26 +04:00
Kyle Lutz
aad03486d9 Add interop support
This adds interoperability support between Boost.Compute and various
other C/C++ libraries (Eigen, OpenCV, OpenGL, Qt and VTK). This eases
development for users using external libraries with Boost.Compute.
2014-01-06 23:35:38 -08:00
Kyle Lutz
b47e74df6f Add is_fundamental type-trait 2014-01-06 23:04:36 -08:00
Kyle Lutz
0bc8818c50 Add Black-Scholes option pricing example 2014-01-06 22:52:48 -08:00
Kyle Lutz
eca81df028 Merge pull request #39 from ddemidov/offline-cache
Implements offline kernel caching
2014-01-06 22:47:52 -08:00
Denis Demidov
4ba736aac4 Test offline cache with Travis-CI 2014-01-07 09:07:16 +04:00
Denis Demidov
562f149b18 Implements offline kernel caching
See kylelutz/compute#21

This adds program::build_with_source() function that both creates and
builds the program for the given context with supplied source and
compile options. In case BOOST_COMPUTE_USE_OFFLINE_CACHE macro is
defined, it also saves the compiled program binary for reuse in the
offline cache located in $HOME/.boost_compute folder on UNIX-like
systems and in %APPDATA%/boost_compute folder on Windows.

All internal uses of program::create_with_source() followed by
program::build() are replaced with program::build_with_source().
2014-01-07 09:07:00 +04:00
Kyle Lutz
38c6e9bc0f Include only necessary headers in examples 2014-01-06 19:07:30 -08:00
Kyle Lutz
a385329c0b Fix complex header include in documentation 2014-01-06 18:45:12 -08:00
Kyle Lutz
b17888b604 Move future header to async directory 2014-01-06 18:44:37 -08:00
Kyle Lutz
55eeada078 Add getenv() wrapper
This adds a getenv() wrapper which can be used to avoid having to
explicitly disable MSVC warnings when checking for environment
variables.
2014-01-06 07:53:07 -08:00
Kyle Lutz
98fb402dde Add FAQ to documentation 2014-01-05 20:29:26 -08:00
Kyle Lutz
84b45b4394 Bump Boost version requirement to 1.48
This bumps the required Boost version to 1.48 as Boost.Compute
makes use of Boost.Move which was added in version 1.48.

See issue #37.
2014-01-05 18:53:19 -08:00
Kyle Lutz
e337f632da Add height() and width() methods to image2d 2014-01-05 18:36:29 -08:00
Kyle Lutz
3bc4a6366d Add BOOST_COMPUTE_STRINGIZE_SOURCE() macro 2014-01-05 18:30:34 -08:00
Kyle Lutz
6b30645d6d Remove extra semicolon in accumulate.hpp 2014-01-05 18:18:45 -08:00