AnsweredAssumed Answered

Using ACML with Matlab

Question asked by wesley.emeneker on Nov 19, 2012
Latest reply on Nov 26, 2012 by wesley.emeneker

We want to use ACML 5.[12] with matlab since ACML is much faster on Interlagos and Abu Dhabi than MKL (which matlab uses by default).

I was able to get matlab R2012b and R2011b to use version 5.2.0 by setting some environment variables before starting matlab:




export BLAS_VERSION="/usr/local/packages/acml/5.2.0/ifort/ifort64_fma4_mp/lib/,"

export LAPACK_VERSION=""/usr/local/packages/acml/5.2.0/ifort/ifort64_fma4_mp/lib/,"


Matlab happily used the library provided, but performance was incredibly slow (with a 10,000x10,000 matrix doing x=A\B).

The serial version of ACML was faster with matlab than the threaded version, but still much slower than expected.

I tried removing  "" from the load list, but that didn't make a difference.


Setting the verbosity to 1 told me that the correct libraries were being loaded. Setting the verbosity to 0 made no difference in performance.


What am I doing wrong?