Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Ada > Memory leak in ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 5657 of 5697
Post > Topic >>

Memory leak in BLAS/LINPACK - GNAT on OS X

by tkrauss <thomas.krauss@[EMAIL PROTECTED] > Apr 16, 2008 at 04:06 PM

There have been a few messages on the GNAT-OSX mailing list about an
apparent memory leak in the Ada.Numerics.Long_Real_Arrays
implementation.   The setup is an OS X box (10.4) with the GNAT 4.3
compiler from the macada.org site.  The Ada.Numerics.Long_Real_Arrays
is using the Apple-supplied BLAS and LINPACK libraries under the
hood.  The code snippet below (plagiarized from Jerry's post on the
mailing list) leaks memory (as reported by top).  Note that the same
code but with Long_Complex types does not appear to have this problem.

Has anyone seen this problem on other platforms?  Do other languages
on OS X behave this way?  I'm not sure how to track down the guilty
party here.  Is it Apple's BLAS or LINPACK libraries or something in
the GNAT Long_Real_Arrays multiply method?


with Ada.Numerics.Long_Real_Arrays;
use Ada.Numerics.Long_Real_Arrays;

procedure tst_simple is
  v        : Real_Vector(1 .. 100_000) := (others => 1.23);
  res      : Real_Vector(1 .. 100_000);
begin
  for i in 1..1000 loop
    res := 123.456 * v;
  end loop;
end tst_simple;




 6 Posts in Topic:
Memory leak in BLAS/LINPACK - GNAT on OS X
tkrauss <thomas.krauss  2008-04-16 16:06:52 
Re: Memory leak in BLAS/LINPACK - GNAT on OS X
Jerry <lanceboyle@[EMA  2008-04-18 14:43:19 
Re: Memory leak in BLAS/LINPACK - GNAT on OS X
Jerry <lanceboyle@[EMA  2008-04-18 14:43:35 
Re: Memory leak in BLAS/LINPACK - GNAT on OS X
Per Sandberg <per.sand  2008-04-19 08:57:10 
Re: Memory leak in BLAS/LINPACK - GNAT on OS X
Jerry <lanceboyle@[EMA  2008-04-19 15:08:55 
Re: Memory leak in BLAS/LINPACK - GNAT on OS X
Jerry <lanceboyle@[EMA  2008-04-19 15:12:06 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue May 13 16:30:00 CDT 2008.