Skip to content
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

Backwards compatibility #446

Open
wants to merge 39 commits into
base: master
Choose a base branch
from
Open

Backwards compatibility #446

wants to merge 39 commits into from

Conversation

dvdjg
Copy link

@dvdjg dvdjg commented Mar 30, 2015

Hello Kule.

This pull adds runtime version checking. It also normalizes the event system of command_queue. Also new enqueue_map_image function.

dvdjg added 18 commits March 29, 2015 11:32
  - 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,...)
* 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>
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.0%) to 94.97% when pulling 731c264 on dvdjg:master into aa15cd6 on kylelutz:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0%) to 94.97% when pulling 93a5be6 on dvdjg:master into aa15cd6 on kylelutz:master.

@kylelutz
Copy link
Collaborator

kylelutz commented Apr 1, 2015

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!

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0%) to 94.97% when pulling d394700 on dvdjg:master into aa15cd6 on kylelutz:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0%) to 94.97% when pulling d394700 on dvdjg:master into aa15cd6 on kylelutz:master.

* 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
@coveralls
Copy link

Coverage Status

Coverage increased (+0.0%) to 94.97% when pulling 8cf1a0f on dvdjg:master into aa15cd6 on kylelutz:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0%) to 94.97% when pulling 8cf1a0f on dvdjg:master into aa15cd6 on kylelutz:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0%) to 94.97% when pulling 8cf1a0f on dvdjg:master into aa15cd6 on kylelutz:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0%) to 94.97% when pulling a8947bd on dvdjg:master into aa15cd6 on kylelutz:master.

@jszuppe
Copy link
Contributor

jszuppe commented Mar 24, 2017

I doubt I'll be able to merge a such big pull-request. Maybe later I'll try to rebase your change to current develop branch, cherry pick them one after another and create one pull-request per feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants