Results 1 to 3 of 3

Thread: Questions about the memory created by clCreateBuffer

  1. #1
    Junior Member
    Join Date
    Apr 2010
    Posts
    27

    Questions about the memory created by clCreateBuffer

    Hello, OpenCL developers.

    1. My first question is about the location of memory. I'm a little confused with how the location of the memory created with clCreateBuffer function is determined.

    The type of memory (global, local, etc) is only specified in the kernel function, and at the moment of creating with clCreateBuffer, I don't know where the memory is located.

    Does the clCreateBuffer just create the memory object in a global memory ??


    2. My second question is about the size of global memory. I'm using GeForce 8800GTX and the query to the size of the global memory says :

    CL_DEVICE_GLOBAL_MEM_SIZE: 777191424 bytes (= 758976 KB)

    It is over 700MB. Could I use such a large amount of memory on my OpenCL programs ?


    Thanks in advance

  2. #2

    Re: Questions about the memory created by clCreateBuffer

    1. Yes, clCreateBuffer allocates memory in the global memory space.

    2. At http://www.nvidia.com/page/geforce_8800.html, the 8800 GTX is listed to have 768MB of memory, which is about what CL_DEVICE_GLOBAL_MEM_SIZE tells you.

  3. #3
    Junior Member
    Join Date
    Apr 2010
    Posts
    27

    Re: Questions about the memory created by clCreateBuffer

    Ok, I got it.

    Thank you ibbles !!

Similar Threads

  1. Replies: 5
    Last Post: 10-02-2012, 11:55 AM
  2. Shared Memory questions
    By mollitz in forum OpenCL
    Replies: 1
    Last Post: 02-06-2010, 11:35 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
  •