Search:

Type: Posts; User: pratapk

Search: Search took 0.00 seconds.

  1. Re: Is Device Memory copy required between different kernels

    okay, I found it, The above works.
  2. Is Device Memory copy required between different kernels

    I just want to confirm this.

    Let's say I created a Device Buffer, So there is no enquequeBuffer or Host_Ptr

    clCreateBuffer(context, CL_MEM_READ_WRITE,4 * sizeof(cl_int), NULL, &error);
    ...
  3. Replies
    17
    Views
    3,461

    Re: Buffer with USE_HOST_PTR doesn't work

    No, The problem fixes as soon as I use aligned memory.
    The Code is really simple, to say there is another problem.

    You can check the attachment URL I gave....
  4. Replies
    17
    Views
    3,461

    Re: Buffer with USE_HOST_PTR doesn't work

    No, new cl_int4[2000] doesn't help.

    The memory needs to be aligned. You need to use
    _aligned_malloc(2000* sizeof(cl_uint4), 16)

    Does OpenCL Spec mandates the memory to be aligned, Or Is it...
  5. Replies
    17
    Views
    3,461

    Re: Buffer with USE_HOST_PTR doesn't work

    My Code is wrong.

    It seems we need aligned memory, I just went through normal OpenCL basics and assumed I can allocate memory of 4 ints and it would work.
  6. Replies
    17
    Views
    3,461

    Re: Buffer with USE_HOST_PTR doesn't work

    It is definitely something got to with int4 in kernel, otherwise it would work.
  7. Replies
    17
    Views
    3,461

    Re: Buffer with USE_HOST_PTR doesn't work

    Please download the file from http://www.assembla.com/spaces/opencl_public/documents
    Please override the templateC project in AMD OpenCL Samples.

    I know this is a trivial one, But somehow it...
  8. Replies
    17
    Views
    3,461

    Re: Buffer with USE_HOST_PTR doesn't work

    No, It happens.
    I am able to reproduce it.

    I can attach template project ( Done on top of AMD Sample template Project )
  9. Replies
    17
    Views
    3,461

    Re: Buffer with USE_HOST_PTR doesn't work

    It is copy and paste error, when I am removing the implementation details.
    Sorry for that.

    But, even you change that to test kernel. It sill happens.
    Now, I am executing this test code rather...
  10. Replies
    17
    Views
    3,461

    Re: Buffer with USE_HOST_PTR doesn't work

    I've got the status and error object as CL_SUCCESS, untill the end of the code except for clWaitForEvents

    The error is: It is trying to read some unintialized memory when executing the kernel,...
  11. Replies
    17
    Views
    3,461

    Re: Buffer with USE_HOST_PTR doesn't work

    I've checked for status and error codes, by debugging through host code.
    I've not included to keep the code to minimum.

    Also, I've changed to be divisible by 64, But still it doesn't work.


    ...
  12. Replies
    17
    Views
    3,461

    Buffer with USE_HOST_PTR doesn't work

    I am trying following simple code but it doesn't work. It gives the access violation when running the kernel ( Which could mean the kernel arguments are not initialized)

    Can you point what is...
  13. Re: clCreateImage2D USE_HOST_PTR throws INV_IMAGE_FORMAT_DES

    Please ignore my post, realized the silly mistake
  14. Re: clCreateImage2D USE_HOST_PTR throws INV_IMAGE_FORMAT_DES

    sorry for the typos.

    void *image = (void*) malloc( height *height);
    should be void *image = (void*) malloc( width*height);

    and wid, hei should be weight and height
  15. clCreateImage2D USE_HOST_PTR throws INV_IMAGE_FORMAT_DESCRIP

    size_t width = 512;
    size_t height = 512;
    void *image = (void*) malloc( width *height * sizeof(unsigned int));

    cl_image_format imageFormat;
    imageFormat.image_channel_data_type = CL_R;...
Results 1 to 15 of 15