Matlab with AMD?

homercles337

Diamond Member
Dec 29, 2004
6,340
3
71
Thought this might be useful to post since matlab doesnt know, nor does any other site. If youre running an AMD cpu in windows with matlab you have to specify which linear algebra library to use. For intel this is the BLAK library and for AMD it is ATLAS. Do a right click on my computer->properties->advanced, then click Environment Variables and make a new User Variable. In the Variable Name add BLAS_VERSION, and in the Variable value add atlas_Athlon.dll. Done. ;)
 

oboeguy

Diamond Member
Dec 7, 1999
3,907
0
76
Question: I noticed there's an atlas file for the P4 too (Pic). Should I be explicitly be telling Matlab to use it or does it know by itself?

Edit: apparently if you set LAPACK_VERBOSITY as an environment variable with value 1, Matlab is supposed to tell you which version it is using. Doesn't seem to work for me, boo!

Edit 2: the env variable trick works on another machine (Linux). This win32 machine is not cooperating!
 

oboeguy

Diamond Member
Dec 7, 1999
3,907
0
76
FYI (just got Matlab 7 at work):

New Vendor BLAS Used for Linear Algebra in MATLAB

MATLAB uses Basic Linear Algebra Subprograms (BLAS) for its vector inner product, matrix-vector product, matrix-matrix product, and triangular solvers in \. MATLAB also uses BLAS behind its core numerical linear algebra routines from Linear Algebra Package (LAPACK), which are used in functions like chol, lu, qr, and within the linear system solver \.
On some platforms, MATLAB continues to use ATLAS BLAS.
Starting in Release 14, MATLAB 7.0 uses vendor BLAS from the vecLib library on the Mac.
Starting in Release 14 with Service Pack 1, MATLAB 7.0.1 uses vendor BLAS from The Intel® Math Kernel Library (MKL) Version 7.0 on Intel chips running both Windows and Linux. See the MATLAB 7.0 Release Notes for how to use the multi-threaded capabilities of MKL. The AMD Core Math Library (ACML) Version 2.0 library on AMD chips, native 64 bit application

Edit: teh suck at quoting