2 Replies Latest reply on Jun 26, 2009 4:07 PM by Raistmer

    GPU memory leak?

      After many iterations there was such error issued:

      Input streams Allocation failed.
      Stream Allocation : Failed to create Buffer

      I create streams by different means.

      1. Local (to block) variables.
      They shoudl be destructed at end of block.

      2. via new/delete
      It seems each new has corresponding delete....

      3. by using domain() method.

      What will be with memory allocated for substream in next situation:

      1)big stream created via new.
      2)substream created via domain()
      3) initial big stream deleted via delete before end of vivibility area for substream.

      Will substream be destroyed correctly in this case and will GPU memory be freed?

      Any known bugs with GPU memory release for some of these situations ?

      EDIT: or there is some another reason for such error message exists, not connected with GPU memory leak ?

        • GPU memory leak?

          Domain stream is deleted when its destructor is called (goes out of scope) and calling parent stream destructor should not have any affect on domain stream. I am not sure of any bug related to GPU memory release.

          Though, there is a possibility of not able to reuse complete GPU memory available as GPUs too have memory fragmentation issues.

          I can probably give more inputs if you can post your test case.

            • GPU memory leak?
              Originally posted by: gaurav.garg

              I can probably give more inputs if you can post your test case.

              Thank you very much.
              function that resulted in this error pretty big. If I will reproduce that situation in some test case I will post it.