Installing on Mac OS X Lion

Post here if you have a question about the installation process

Re: Installing on Mac OS X Lion

Postby admin » Mon Feb 06, 2012 9:57 am

The guide is the same than Linux.
For the REFERENCE LAPACK
Just download the lapack.tgz from LAPACK website: http://www.netlib.org/lapack
Code: Select all
open a terminal
unzip the package
go into the LAPACK folder
cp make.inc make.inc.example
make blaslib  # To generate the Reference BLAS Library
make

Note: You also can use Mac Accelerate Framework, It will give you better performance.
It is installed on your mac once you install XCODE or the Developer package.
More info here: https://developer.apple.com/performance ... ework.html
To link your program, just use
Code: Select all
 -framework accelerate

You can also use both: Take the Accelerate Framework as BLAS library and Take Reference LAPACK for LAPACK library
The BLAS included in the Accelerate Framework will give you very good performance as it is an optimized and multi-threaded BLAS.Thread are controlled with the VECLIB_MAXIMUM_THREAD environment variable.
By default, the Accelerate Framework will enable threading.
And you will enjoy all the latest LAPACK features if you are using the Reference LAPACK.
To do so edit your make.inc and for BLASLIB put
BLASLIB= -framework accelerate
You will just need to do make after that, and all the LAPACK testing will be linked with the Mac OS/X Accelerate Framework
admin
Site Admin
 
Posts: 486
Joined: Wed Dec 08, 2004 7:07 pm

Re: Installing on Mac OS X Lion

Postby admin » Tue Feb 07, 2012 3:47 am

The error is not within LAPACK but in your program, it seems that you need to define a variable called LAPACK.
I would refer to the documentation of your software.
If you post the Engine/ReflectionOperator.h, maybe I could help, but I do not know that software.
Julie
admin
Site Admin
 
Posts: 486
Joined: Wed Dec 08, 2004 7:07 pm

Re: Installing on Mac OS X Lion

Postby fisheatfish » Fri Feb 24, 2012 7:22 am

Hi all,

I have some problems with building Lapack on Mac OS Lion. I have a x86_64 architecture.
You will find below in the link the errors i'm getting with the build.

http://pastebin.com/pdtMHsW2

Thank you in advance :)
fisheatfish
 
Posts: 1
Joined: Fri Feb 24, 2012 6:50 am

Re: Installing on Mac OS X Lion

Postby admin » Fri Feb 24, 2012 8:47 pm

What is your command?
Seems that you did not compile the files in TESTING/MATGEN, so your libtmglib.a is not compete and missing some symbols.
Just do make tmglib.
Julie
admin
Site Admin
 
Posts: 486
Joined: Wed Dec 08, 2004 7:07 pm

Re: Installing on Mac OS X Lion

Postby LairdStiby1 » Thu May 03, 2012 4:53 am

I had similar issues on Lion as well... I am wondering whether it's a RAM issue, what would you recommend for RAM minimums?

Thanks
LairdStiby1
 
Posts: 2
Joined: Thu May 03, 2012 4:44 am

Re: Installing on Mac OS X Lion

Postby admin » Thu May 03, 2012 10:32 pm

You need to post your output so we can help you.
admin
Site Admin
 
Posts: 486
Joined: Wed Dec 08, 2004 7:07 pm

Re: Installing on Mac OS X Lion

Postby LairdStiby1 » Thu May 10, 2012 8:55 pm

Ah yes sorry, I believe it's the exact same error that the previous user has experienced:

http://pastebin.com/yzNRzHwS

Here's my output, thanks for the help :)
LairdStiby1
 
Posts: 2
Joined: Thu May 03, 2012 4:44 am

Re: Installing on Mac OS X Lion

Postby zhuxx351 » Mon Jun 18, 2012 12:09 am

I am using Mac OS 10.7.4. According to your post, I set "BLASLIB = -framework accelerate" in my make.inc file. I got the following error:
Code: Select all
ar cr -framework isamax.o sasum.o saxpy.o scopy.o sdot.o snrm2.o srot.o srotg.o sscal.o sswap.o sdsdot.o srotmg.o srotm.o sgemv.o sgbmv.o ssymv.o ssbmv.o sspmv.o strmv.o stbmv.o stpmv.o strsv.o stbsv.o stpsv.o sger.o ssyr.o sspr.o ssyr2.o sspr2.o sgemm.o ssymm.o ssyrk.o ssyr2k.o strmm.o strsm.o  idamax.o dasum.o daxpy.o dcopy.o ddot.o dnrm2.o drot.o drotg.o dscal.o dsdot.o dswap.o drotmg.o drotm.o dgemv.o dgbmv.o dsymv.o dsbmv.o dspmv.o dtrmv.o dtbmv.o dtpmv.o dtrsv.o dtbsv.o dtpsv.o dger.o dsyr.o dspr.o dsyr2.o dspr2.o dgemm.o dsymm.o dsyrk.o dsyr2k.o dtrmm.o dtrsm.o scabs1.o scasum.o scnrm2.o icamax.o caxpy.o ccopy.o cdotc.o cdotu.o csscal.o crotg.o cscal.o cswap.o csrot.o cgemv.o cgbmv.o chemv.o chbmv.o chpmv.o ctrmv.o ctbmv.o ctpmv.o ctrsv.o ctbsv.o ctpsv.o cgerc.o cgeru.o cher.o chpr.o cher2.o chpr2.o cgemm.o csymm.o csyrk.o csyr2k.o ctrmm.o ctrsm.o chemm.o cherk.o cher2k.o dcabs1.o dzasum.o dznrm2.o izamax.o zaxpy.o zcopy.o zdotc.o zdotu.o zdscal.o zrotg.o zscal.o zswap.o zdrot.o zgemv.o zgbmv.o zhemv.o zhbmv.o zhpmv.o ztrmv.o ztbmv.o ztpmv.o ztrsv.o ztbsv.o ztpsv.o zgerc.o zgeru.o zher.o zhpr.o zher2.o zhpr2.o zgemm.o zsymm.o zsyrk.o zsyr2k.o ztrmm.o ztrsm.o zhemm.o zherk.o zher2k.o lsame.o xerbla.o xerbla_array.o
ar: illegal option -- f
usage:  ar -d [-TLsv] archive file ...
   ar -m [-TLsv] archive file ...
   ar -m [-abiTLsv] position archive file ...
   ar -p [-TLsv] archive [file ...]
   ar -q [-cTLsv] archive file ...
   ar -r [-cuTLsv] archive file ...
   ar -r [-abciuTLsv] position archive file ...
   ar -t [-TLsv] archive [file ...]
   ar -x [-ouTLsv] archive [file ...]
make[1]: *** [-framework] Error 1
make: *** [blaslib] Error 2

Any idea what is going on?
Thanks in advance!
zhuxx351
 
Posts: 1
Joined: Mon Jun 18, 2012 12:01 am

Re: Installing on Mac OS X Lion

Postby admin » Mon Jun 18, 2012 6:53 pm

if you are using the accelerate framework, please do not try to generate the BLAS Library.
Just type make, it should work.
admin
Site Admin
 
Posts: 486
Joined: Wed Dec 08, 2004 7:07 pm

Re: Installing on Mac OS X Lion

Postby eijkhout » Wed May 08, 2013 10:27 pm

If I use the accelerate framework from C, do I still use the Fortran prototypes? If so, what do the names of the routines look like? dgemv / dgemv_ / DGEMV ?

I can't find the proper header file....

Victor.
eijkhout
 
Posts: 7
Joined: Thu Oct 09, 2008 11:31 am

Re: Installing on Mac OS X Lion

Postby rodney » Wed May 08, 2013 11:27 pm

Victor,

The vecLib Framework uses clapack, and the header file is:

/System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Headers/clapack.h

Rodney
rodney
 
Posts: 48
Joined: Thu Feb 10, 2011 8:20 pm
Location: Colorado College

Re: Installing on Mac OS X Lion

Postby plink53 » Wed Jan 08, 2014 12:16 pm

Have you tried installing on OSX Mavericks, 10.9, using Xcode 5.0.2? I did an initial attempt without anything extra and got it to finish but had a variety of errors (none at end). With the new Mac Pro, I'd like to have LaPack ready to test using the GPUs (if LaPack uses OpenCL) when I can get one. A customized makefile would be nice. Thanks.
plink53
 
Posts: 1
Joined: Wed Jan 08, 2014 12:12 pm


Return to Installation

Who is online

Users browsing this forum: No registered users and 2 guests