GotoBLAS2

MinGW should be installed first.

Next…

GotoBLAS2

GotoBLAS2 is an implementation of Basic Linear Algebra Subprograms (BLAS).

LAPACK uses BLAS.

GotoBLAS2 has configurations for a variety of hardware platforms. It builds a library that is optimized for the given PC’s CPU.

Make a folder called: c:\LAPACK

Download GotoBLAS2. Filename = GotoBLAS2-1.13_bsd.tar.gz

http://www.tacc.utexas.edu/tacc-projects/gotoblas2/downloads/

Save File to: c:\LAPACK

Then open and extract with jZip or some other utility.

jZip is available for free at:

http://www.jzip.com/

The extracted files should appear in:

c:\LAPACK\GotoBLAS2

wget

wget – is a utility that retrieves files using HTTP, HTTPS and FTP
It will be used in the “make” process to download the latest LAPACK files.

It is given in file: wget

Copy wget into c:\MinGW

Then rename it as: wget.exe
(This approach is needed to circumvent Email firewalls.)

Next… Open the Unix-like shell

Programs > MinGW > MinGW Shell

$ cd /c/LAPACK
$ mkdir include (make include sub-folder)

Install the files from: includes.tgz     (This is for CBLAS).

Type:

$ cd /c/LAPACK/GotoBLAS2 (The $ sign is the prompt)

$ make
(this is the step to build the libraries for LAPACK & GotoBLAS2)

$ ls *.lib (directory)

You should then see a file such as:

“libgoto2_nehalemp-r1.13.lib”

Or:

“libgoto2_barcelonap-r1.13.lib”

The string in the middle depends on your CPU type.

Then type

$ nm libgoto2*.lib | grep dsptrd (file listing)

You should several lines such as
U _dsptrd_

From within the MinGW shell:

Copy includes.tgz into /c/LAPACK/include

and run: tar -zxvf includes.tgz

Also check for

C:\LAPACK\GotoBLAS2\exports\libgoto2.dll

This dll can be used for compiling programs which use LAPACK subroutines in a pure Windows environment.

More later . . .

* * *

Tom Irvine

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s