set_math_lib sets the math library.
Return Value
bool is TRUE (1), if the function was successful and otherwise FALSE (0).
Parameters
ssLib is one of the strings “ref”, “mkl”.
| mkl | Intel® Math Kernel Library (Intel® MKL), http://software.intel.com/en-us/intel-mkl/ |
| ref | Non optimized reference implementaion, http://www.netlib.org/lapack/index.html |
Example
set_math_lib("ref")
a = rand(1000, 1000);
tic(); a*a; toc()
set_math_lib("mkl")
a = rand(1000, 1000);
tic(); a*a; toc()
History
| Version | Description |
|---|---|
| 5.15.2 | AMD Core Math Library (ACML) removed, use MKL. |
| 5.14.0 | New |
See also
id-880570