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 LAPACK_VERBOSITY=1

export BLAS_VERBOSITY=1

export BLAS_VERSION="/usr/local/packages/acml/5.2.0/ifort/ifort64_fma4_mp/lib/libacml_mp.so,acmlcompat.so"

export LAPACK_VERSION=""/usr/local/packages/acml/5.2.0/ifort/ifort64_fma4_mp/lib/libacml_mp.so,acmlcompat.so"

 

Matlab happily used the acml_mp.so 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  "acmlcompat.so" 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?

 

Thanks,

Wesley

Outcomes