Results 1 to 3 of 3

Thread: Too many images?

  1. #1
    Junior Member
    Join Date
    Jul 2011

    Too many images?

    I use NVIDEA OpenCL version.
    My kernel requied array of 2D images as input parameter. Since current version does not support arrays of images I use each one as separate parameter.

    __kernel void blabla(__write_only image2d_t out_view0,
    __write_only image2d_t out_view1,
    __write_only image2d_t out_view2,
    __write_only image2d_t out_view3,
    __write_only image2d_t out_view4,
    __write_only image2d_t out_view5,
    __write_only image2d_t out_view6,
    __write_only image2d_t out_view7,
    The code works fine in case I have only 8 images. In case I try to increace the number I get the error

    ptxas fatal : More than 8 surfaces used in entry function 'blabla'
    I have another kernel that uses 16 2D read only images as input and it works fine.
    Do anybody have exponation what does it mean?

  2. #2
    Join Date
    Jul 2011
    Moscow, Russia

    Re: Too many images?

    Blog (in russian)

  3. #3
    Senior Member
    Join Date
    May 2010
    Toronto, Canada

    Re: Too many images?

    Elaborating a little on what Maxim said, you want to call clGetDeviceInfo() and pass CL_DEVICE_MAX_WRITE_IMAGE_ARGS as the argument.
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

Similar Threads

  1. MSAA images
    By pelotoescogorciao in forum OpenCL
    Replies: 0
    Last Post: 03-30-2011, 03:18 PM
  2. RGB images
    By absence in forum OpenCL
    Replies: 5
    Last Post: 02-06-2010, 11:39 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
Proudly hosted by Digital Ocean