Results 1 to 2 of 2

Thread: Returning a single value from kernel!

  1. #1
    Junior Member
    Join Date
    May 2011
    Posts
    24

    Returning a single value from kernel!

    Hi!

    In order to return a single value (float or int) from the kernel, is it necessary to use buffers (clCreateBuffer, clEnqueReadBuffer) or is there some other way?

    Thanks!
    Atmapuri

  2. #2

    Re: Returning a single value from kernel!

    That would be the most obvious way. You could write to an image instead, but that would hardly be any simpler.

Similar Threads

  1. Kernel always returns the same array of single value
    By fizzlesticks23 in forum OpenCL
    Replies: 1
    Last Post: 04-05-2013, 06:45 AM
  2. Replies: 1
    Last Post: 02-22-2010, 01:16 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
  •