Results 1 to 2 of 2

Thread: clCreateBuffer

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Posts
    10

    clCreateBuffer

    Can a buffer created without using a host pointer be guaranteed to be zeroed or must I zero it?

    edit: wasn't paying attention, this should be in "Developers Coding:Beginner"

  2. #2
    Senior Member
    Join Date
    May 2010
    Location
    Toronto, Canada
    Posts
    845

    Re: clCreateBuffer

    Can a buffer created without using a host pointer be guaranteed to be zeroed or must I zero it?
    It's not guaranteed to be zeroed. The contents of the buffer are undefined at creation.
    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. clCreateBuffer and cl_mem_flags
    By moozoo in forum OpenCL
    Replies: 1
    Last Post: 03-22-2011, 05:43 AM
  2. clCreateBuffer() need lots of time
    By lava in forum OpenCL
    Replies: 2
    Last Post: 07-29-2010, 06:26 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
  •