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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2aab332eb0011c4d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!feeder.visyn.net!visyn.net!aioe.org!not-for-mail From: "John B. Matthews" Newsgroups: comp.lang.ada Subject: Re: Which GNAT requires LAPACK and BLAS for Ada.Numerics.xxx? Date: Tue, 13 Jul 2010 00:12:22 -0400 Organization: The Wasteland Message-ID: References: <5cf5e149-a827-4890-a80b-6ee37109ddca@i19g2000pro.googlegroups.com> NNTP-Posting-Host: LQJtZWzu+iKlBROuDg+IUg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Xref: g2news1.google.com comp.lang.ada:12364 Date: 2010-07-13T00:12:22-04:00 List-Id: In article <5cf5e149-a827-4890-a80b-6ee37109ddca@i19g2000pro.googlegroups.com>, Jerry wrote: > The PLplot developers need a bit of help with automating their build > process with regard to Ada (GNAT only). They use cmake. As the person > who wrote the Ada binding, I've been asked to get the information. > > Currently, cmake has an Ada 2005 flag which if set, with-s and use-s > Ada.Numerics.Long_Real_Arrays which was added in Ada 2005. If the > flag is not set, the binding source code is automatically modified a > little bit so that the 2005-specific stuff is not needed. (The > binding only needs the Vector and Matrix declarations, so this is a > lot of work for such a small benefit, but that's the way things are > right now.) > > If Ada.Numerics.Long_Real_Arrays is used, it needs to link to lapack > and blas which the PLplot cmake process can be made to handle. > > So the questions are: > > (1) What is the earliest version of GNAT that requires lapack and blas > if Ada.Numerics.Long_Real_Arrays is referenced? I think it might be > 4.3. Definitely in 4.3.4: $ pwd /usr/local/ada-4.3/lib/gcc/i686-apple-darwin9/4.3.4/adainclude $ egrep -iH "with.*blas|with.*lapack" a-*.ad[sb] a-ngcoar.adb:with System.Generic_Complex_BLAS; a-ngcoar.adb:with System.Generic_Complex_LAPACK; a-ngrear.adb:with System.Generic_Real_BLAS; a-ngrear.adb:with System.Generic_Real_LAPACK; > (2) Is there an earlier version that has the limited capabilities > required by the Ada binding, specifically, only the declarations for > type Real_Vector is array (Integer range <>) of Real'Base; type > Real_Matrix is array (Integer range <>, Integer range <>) but which > does not require linking lapack and blas? I started with Martin Dowie's 296 & 346: IIRC, the changes were minor. If it would help, I have the last, independent set that I used before switching to BLAS/LAPACK in June, 20009. -- John B. Matthews trashgod at gmail dot com