-
Couldn't load subscription status.
- Fork 338
Backwards compatibility #446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
- Removed internal funciton: bool check_version(int major, int minor) const. - Created function: uint_ version_number() const version_number function computes and caches the OpenCL device version for faster runtime checks. * Aditional runtime version checks. Static linking checks are not enough: You can compile a funcition using a OpenCL 2.0 enabled system, but if the final device is only 1.2, only 1.2 functions must be invoked.
… You can compile a function using a OpenCL 2.0 enabled system, but if the final device is only 1.2, only 1.2 functions must be invoked. * Added enqueue_map_image functions. * enqueue_unmap_buffer uses memory_object instead of buffer objects, so it can be used with images. * Added static assets: BOOST_STATIC_ASSERT * Deprecated functions (eg. clEnqueueTask) must be compiled for backward compatibility. * Removed check_device_version
… You can compile a function using a OpenCL 2.0 enabled system, but if the final device is only 1.2, only 1.2 functions must be invoked. * Deprecated functions (eg. clCreateImage2D) must be maintained for backward compatibility.
…h other get_*() functions. * Added the get_version() member function to command_queue and to context for fast runtime checks. * Runtime checks. * More synchronizable functions in command_queue (enqueue_read_buffer_rect, enqueue_write_buffer_rect, enqueue_map_buffer, enqueue_map_image, enqueue_svm_map,...) * Fixed a bad use of `cl_bool blocking_read = CL_TRUE` when trying to use the returned event (enqueue_read_image, enqueue_write_image,...)
… to the first dimension size.
* XXX_async() functions wher returning event.
#include <boost/compute/interop/opengl/gl.hpp> #include <boost/compute/interop/opengl/cl_gl_ext.hpp> instead of: #ifdef __APPLE__ #include <OpenGL/gl.h> #include <OpenGL/glext.h> #else #include <GL/gl.h> #include <GL/glext.h> #endif * Created: enqueue_copy_buffer_async(), enqueue_copy_buffer_async(). * In Windows Inlude "windows.h" before <GL/gl>
|
Wow, thanks for making these fixes and doing all this work! It'll take me a few days to review and plan how to integrate these changes. Thanks! |
* Declare const those functions than does not modify class members (even if is modified the refered data). * Empty constructor for user_event.
channel_order get_channel_order() channel_data_type get_channel_data_type() const
Warning: Code under development
* changed enum device_type name
|
I doubt I'll be able to merge a such big pull-request. Maybe later I'll try to rebase your change to current |
Hello Kule.
This pull adds runtime version checking. It also normalizes the event system of command_queue. Also new enqueue_map_image function.