Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: clCreateFromGLTexture undef ref and kernel args

  1. #11

    Re: clCreateFromGLTexture undef ref and kernel args

    This must be then a hardware and/or SDK related problem. I just checked and I can put as many (probably as many as CL_CL_DEVICE_MAX_READ_IMAGE_ARGS) __read_only 2D image arguments in the kernels parameter list.

    Do you have multiple GPUs in your system? I once had a similar problem but with constant arguments described here.

  2. #12
    Junior Member
    Join Date
    Feb 2013
    Posts
    9

    Re: clCreateFromGLTexture undef ref and kernel args

    Thats an interesting question.

    I just went over my Devce Manager, and on Display adapters I found I have an Intel(R) HD Graphics 4000 and NVIDIA Geforce GTX 680.

    Might this be the problem? is there a way to detect which graphics card is OpenGL using and use the same device for openCL ?

    --edit: just experimented with this
    clGetDeviceInfo(device, CL_DEVICE_NAME, sizeof(buffer), buffer, NULL);
    printf(" DEVICE_NAME = %s\n", buffer);

    got "GeForce GTX 680".

  3. #13
    Junior Member
    Join Date
    Feb 2013
    Posts
    9

    Re: clCreateFromGLTexture undef ref and kernel args

    Guys,

    I just managed to compile it. I found, over some hours surfing the web, that for the Geforce 680 you must use all the input arguments in the kernel. Unbelievable bug...

    Thank you all for your help
    Shark

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Limit of kernel args
    By Carlos.Reig in forum OpenCL
    Replies: 1
    Last Post: 06-23-2012, 10:16 PM
  2. clBuildProgram crashes with varying kernel args
    By poonaatsoc in forum OpenCL
    Replies: 2
    Last Post: 12-24-2009, 05:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •