Results 1 to 2 of 2

Thread: Question on OpenCL image memory consumption

  1. #1
    Junior Member
    Join Date
    Aug 2011
    Posts
    6

    Question on OpenCL image memory consumption

    Hi,

    I am new to OpenCL (have a bit more experience with CUDA) and have a question about image memory objects.

    Do I understand correctly, that there is no way to have an image with only one channel? Consider I have a 3D black-and-white image of large size (e.g. 512^3) with float precision. If I store this as "Image3D" object, does this mean the memory consumption on the graphics hardware is then 4x512^3 floats (2GB), although I would actually only need one channel? This would mean that 3/4 of the consumption would be completely wasted, and the code would not run on a lot of cards, while it actually could, given a reasonable memory layout (512MB).

    In total these image objects seem less flexible to me compared to what i can do with the "texture memory" in CUDA. Maybe I am mistaken (?).

    Thanks for your answers,
    Jakob

  2. #2
    Junior Member
    Join Date
    Aug 2011
    Posts
    6

    Re: Question on OpenCL image memory consumption

    Question answered:
    I was not aware of that when I choose CL_INTENSITY the image is internally stored with only one channel.

Similar Threads

  1. Newbie question Large image 3D texture How to?
    By ChicagoBob in forum OpenGL ES
    Replies: 1
    Last Post: 01-23-2013, 11:12 PM
  2. Actual power-consumption data?
    By DaveS in forum OpenVG
    Replies: 0
    Last Post: 09-12-2010, 11:04 PM

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