Search:

Type: Posts; User: bgaster

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    99
    Views
    67,985

    Re: OpenCL C++ Bindings

    I am pleased to announce that there is an updated version of the C++ bindings for OpenCL 1.1 that fixes a number of issues, including:

    - reference counting
    - native kernels

    I've also added...
  2. Replies
    99
    Views
    67,985

    Re: OpenCL C++ Bindings

    I have uploaded a new version of the cl.hpp which addresses many of the issues discussed here. Please try them out and let me know how they go.
  3. Replies
    99
    Views
    67,985

    Re: OpenCL C++ Bindings

    This is actually being worked on at Khronos and there is a new cl_platform.h that resolves both issues discussed here, i.e. vector types will not be defined as simple arrays and this will fix the...
  4. Replies
    99
    Views
    67,985

    Re: OpenCL C++ Bindings

    Thinking about this some more I'm not sure this makes sense.

    I agree that it will work with

    template <typename T, int N>
    struct KernelArgumentHandler<T[N]>
    {
    static ::size_t size(const T...
  5. Replies
    99
    Views
    67,985

    Re: OpenCL C++ Bindings

    I have not tested this yet, getting late in Austin, but would something like this work instead:

    template <typename T, int N>
    struct KernelArgumentHandler<T[N]>
    {
    static ::size_t size(const...
  6. Re: Multiple command queues from the same device: why?

    This feature is provided for flexibility, in particular it is possible to imagine an application that is writing/reading to a device via one queue and enqueuing kernels with another. The question of...
  7. Re: Should clGet*Info increment the reference to the cl_* type?

    I think the issue is the use of the vector assign operator in get*Info helper function. One possible fix is to replace this with a for loop and construct from the wrapper, forcing a increment in the...
  8. Re: Should clGet*Info increment the reference to the cl_* type?

    I think you are correct this is a bug in the C++ bindings.

    I am still a little confused why reference counts are the values you are printing. Running on our implementation we get:

    Context...
  9. Replies
    99
    Views
    67,985

    Re: OpenCL C++ Bindings

    Yes I did mean CL :-)

    I will be sure to comment here when they go up.
  10. Replies
    99
    Views
    67,985

    Re: OpenCL C++ Bindings

    We have C++ bindings for the GL extensions that we will be releasing in the near future.
  11. Replies
    99
    Views
    67,985

    Re: OpenCL C++ Bindings

    It is a good point about the pointers over references. The reasons pointers are used in certain places is that they map directly to where this are map as pointers in the underlying C model. In...
  12. Re: In the case the 2 or more platforms is aviailable

    The Compute working group at Khronos is working on a ICD that will allow mutiple vendor implementations to be present on the same machine and these will be exposed through platforms. For example,...
  13. Replies
    3
    Views
    3,831

    Re: cl.hpp: Kernel::getWorkGroupInfo bugs

    I have updated the C++ bindings to fix this and other issue, and have requested that they be uploaded.
  14. Thread: OpenCL DDK?

    by bgaster
    Replies
    2
    Views
    2,532

    Re: OpenCL DDK?

    There is no OpenCL DDK and to the best of my knowledge each vendor is developing their own implementation. I expect that there may be common components but OpenCL is a large specification and there...
  15. Replies
    99
    Views
    67,985

    Re: OpenCL C++ Bindings

    > I've been trying to compile the C++ bindings files with no success. Has anyone done this successfully on an intel iMac osx 10.5.8. I get > the following errors:
    > cl.h:452: error: expected...
  16. Replies
    99
    Views
    67,985

    Re: OpenCL C++ Bindings

    I have updated the C++ bindings to provide copy constructor for KernelFunctor and the following program now compiles without error:


    #include <CL/cl.hpp>

    int main(void)
    {
    ...
  17. Replies
    99
    Views
    67,985

    Re: OpenCL C++ Bindings

    A new verison of the C++ bindings has been uploaded that fixes a bug introduced with the cl::vector class and its use with NDRange. It can be found here:

    http://www.khronos.org/registry/cl/
  18. Replies
    99
    Views
    67,985

    Re: OpenCL C++ Bindings

    Sorry for the delay but I have updated the C++ bindings:

    http://www.khronos.org/registry/cl/

    This includes removing the call to ::clEnqueueAcquireExternalObjects but also have added two new...
  19. Re: Assigning a number to a __global int *p and resolving it

    There seems to be few issues with the code as presented. Firstly, in the first kernel you are assigning a value (bmasks + i) of type __global int * to a value (m[i]) of type int:

    t1.cl(7):...
  20. Replies
    2
    Views
    2,738

    Re: address space on multiple chips

    OpenCL describes a memory hierarchy where each memory has different capabilitites, for example, is it possible to preform memory fence operations for work-items accessing local memory, such that...
  21. Replies
    3
    Views
    4,019

    Re: Persistent storage on opencl GPU

    Persistance data storage is through buffers, i.e cl_mem objects, that can written through the host API, clEnqueueWriteBuffer, or via output from a kernel. A cl_mem object once allocated will presist...
  22. Re: Can the vector types be made more C++ friendly?

    It is worth noting that cl_platform.h is only an example and a particular vendor is free to implement this file as they feel necessary. That said we have also run into this issue but after...
  23. Replies
    6
    Views
    7,516

    Re: OpenCL Books / tutorials

    I beleive that a OpenCL book project is being considered and also a number of white papers are hopeful.
  24. Replies
    99
    Views
    67,985

    Re: OpenCL C++ Bindings

    Sorry for the delay but I forgot to build the corrsponding documentation and this is done now and hopefully the updated bindings and documentation should be up by tommorrow.
  25. Replies
    3
    Views
    3,194

    Re: Undefined buffer object location ?

    The buffer is allocated on both devices and OpenCL provides a guranteee that the memory between the two devices is consistent. For example, given a context that has two assocated devices, with...
Results 1 to 25 of 28
Page 1 of 2 1 2