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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,222ed89632aabb93 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.191.137 with SMTP id gy9mr2293755pbc.6.1343032350051; Mon, 23 Jul 2012 01:32:30 -0700 (PDT) Path: p10ni37787312pbh.1!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!ctu-peer!ctu-gate!news.nctu.edu.tw!usenet.stanford.edu!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Ada novice Newsgroups: comp.lang.ada Subject: Re: Free AMD Core Math Library (BLAS/LAPACK) + Ada Date: Sun, 15 Jul 2012 14:24:06 -0700 (PDT) Organization: http://groups.google.com Message-ID: <16a6786f-6de5-49c4-90b7-a55cb238d52a@googlegroups.com> References: <41b74e89-f112-4791-883d-236080652dbf@googlegroups.com> <37b4ba31-245e-44d1-9183-5c3367c88101@googlegroups.com> <2db42c1b-cfd4-4a6f-9e0c-ce269ddf00c5@googlegroups.com> <7cadf109-e24a-45eb-9d7c-354d8899eec4@googlegroups.com> <3f14ee5a-d055-4252-ab45-7ca512a23fac@googlegroups.com> <9cc53435-3c7f-4443-8209-5137b9377aca@googlegroups.com> <583b29e2-3f75-4b0a-8f1a-802b3d6e502c@googlegroups.com> <34139f6f-5905-4c9e-a873-0b2445a1fccd@googlegroups.com> <87txx8yl8t.fsf@ludovic-brenta.org> <87pq7wyek7.fsf@ludovic-brenta.org> NNTP-Posting-Host: 193.11.21.204 Mime-Version: 1.0 X-Trace: posting.google.com 1342387447 26900 127.0.0.1 (15 Jul 2012 21:24:07 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 15 Jul 2012 21:24:07 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=193.11.21.204; posting-account=Rr9I-QoAAACS-nOzpA-mGxtAlZ46Nb6I User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-07-15T14:24:06-07:00 List-Id: Thank you for the interesting discussions. I finally got BLAS to work. On my fresh linux in the vbox, I installed gnat, liblapack-dev and libblas-dev. apt-cache policy libblas-dev libblas-dev: Installed: 1.2.20110419-2 Candidate: 1.2.20110419-2 Version table: *** 1.2.20110419-2 0 500 http://debian.linuxmint.com/latest/ testing/main i386 Packages 100 /var/lib/dpkg/status apt-cache policy liblapack-dev liblapack-dev: Installed: 3.3.1-1 Candidate: 3.3.1-1 Version table: *** 3.3.1-1 0 500 http://debian.linuxmint.com/latest/ testing/main i386 Packages 100 /var/lib/dpkg/status And I compiled using gnatmake *.adb -largs -lblas. Et voila! gcc-4.4 -c ada_blas-complex.adb gcc-4.4 -c ada_blas.ads gcc-4.4 -c ada_blas-real.adb gcc-4.4 -c example1.adb gcc-4.4 -c example_support.ads gnatbind -x example1.ali gnatlink example1.ali -lblas gcc-4.4 -c print_precisions.adb gcc-4.4 -c ada_blas-get_precision.ads gnatbind -x print_precisions.ali gnatlink print_precisions.ali -lblas giving ./example1 Dot product is: 0.00000E+00 and ./print_precisions -- Various BLAS precisions -- Float_Type'Digits: 1 Float_Type'Base'Digits: 6 BLAS precision: SINGLE Float_Type'Digits: 4 Float_Type'Base'Digits: 6 BLAS precision: SINGLE Float_Type'Digits: 9 Float_Type'Base'Digits: 15 BLAS precision: DOUBLE Float_Type'Digits: 13 Float_Type'Base'Digits: 15 BLAS precision: DOUBLE Float_Type'Digits: 18 Float_Type'Base'Digits: 18 BLAS precision: UNSUPPORTED ------------- Then I checked the folder /usr/lib/libblas and saw the following: libblas.a libblas.so libblas.so.3gf libblas.so.3gf.0 and also for /usr/lib/lapack: liblapack.a liblapack.so liblapack.so.3gf liblapack.so.3gf.0 So now I have the libblas.a and the liblapack.a files! I didn't create any .bashrc file and didn't do anything with LD_LIBRARY_PATH nor with LIBRARY_PATH. Thanks again YC