Search:

Type: Posts; User: helloOpenCL

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,390

    Re: kernel invocation

    Thank you david, yes I am writing the ray tracing engine, I have written a non-recursive C implementation and now need to implement with OpenCL, one kernel function is too complicated and lots of...
  2. Replies
    3
    Views
    1,390

    kernel invocation

    Im going to write a kernel which will be quite complex, can I separate it to several kernels that can invoke each other?

    when I compile the following sample code, there is an error which i dont...
  3. Replies
    6
    Views
    2,850

    Re: Passing struct to kernel

    Thanks again, but I have a new problem :(
    when I pass the world struct to the kernel which contains some value, i cannot get the value stored in the kernel by: float a =...
  4. Replies
    6
    Views
    2,850

    Re: Passing struct to kernel

    Thanks again, but I have a new problem :(
    when I pass the world struct to the kernel which contains some value, i cannot get the value stored in the kernel by: float a =...
  5. Replies
    6
    Views
    2,850

    Re: Passing struct to kernel

    Hi david, thank you for your reply, can I change the struct to the following to pass to the kernel since i know the size?



    typedef struct {
    Camera camera;
    Light lights[2];
    Sphere...
  6. Replies
    6
    Views
    2,850

    Passing struct to kernel

    Hi I am new to OpenCL and have many problems writing OpenCL kernels.

    I have a struct defined as:


    typedef struct World {
    Camera camera;
    Light *lights;
    Sphere *spheres;
    } World;
Results 1 to 6 of 6