From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=2.0 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,81bb2ce65a3240c3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.196.232 with SMTP id ip8mr7293676pbc.6.1341426939954; Wed, 04 Jul 2012 11:35:39 -0700 (PDT) Path: l9ni10839pbj.0!nntp.google.com!news2.google.com!news.glorb.com!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Re: What would you like in Ada202X? Date: Wed, 04 Jul 2012 13:35:35 -0500 Organization: Aioe.org NNTP Server Message-ID: References: <3637793.35.1335340026327.JavaMail.geo-discussion-forums@ynfi5> <4ff312ad$0$6178$ba4acef3@reader.news.orange.fr> <4ff314d8$0$6218$ba4acef3@reader.news.orange.fr> <856acffb-1fc3-474e-b11f-f540977e945f@googlegroups.com> Reply-To: nma@12000.org NNTP-Posting-Host: oUn0LTjBlBP9/JkthmUfFw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-07-04T13:35:35-05:00 List-Id: On 7/4/2012 12:55 PM, Simon Wright wrote: > "Nasser M. Abbasi" writes: > >> Need to install blas and lapack yourself first. Use Atlas blas. > > Since Ada.Numerics.Generic[_Complex]_Arrays already depend on BLAS and > LAPACK I'd have thought they'd come with GNAT (if not already on the > platform, as they are with Mac OS X). > If I just do gnatmake on the file that uses laplack binding, (the example test program, which makes direct calls to lapack), it will complain, during the link process, about missing symbols in blas. so the linker does not see them. So that is why I had to point it to linux installed blas/lapack area to get the link to work as I showed in the command above. But if I call solve() in Ada to solve Ax=b (which I assume ends up making a call to lapack SGESV(), then I do not need to anything other just type gnatmake. I guess it knows then where these libraries are. Not sure how. It could be using then the gnat-own supplied copy of blas, may be located in other area known to gnatmake. I have not looked into it more. --Nasser