+1 vote
asked by (310 points)

Will Intel MKL libraries, work in non-intel hardwares?

I am about to buy a new system/laptop. I currently have intel processor on my system but just wished to ask about new AMDs so, that I don't face any issue when using and compiling tensor networks codes on those systems. Needed some help/suggestion, etc.

1 Answer

+2 votes
answered by (14.1k points)

Yes, I believe that MKL does work on AMD processors. However, by default it may not be as fast on AMD processors. My understanding is that you can set the following environment variable (in Linux):

export MKL_DEBUG_CPU_TYPE=5

and then MKL should run as fast on AMD as it does on Intel processors, but this is an undocumented option in MKL and may not be guaranteed to work for different versions of MKL (and I have not personally tried it). Here are some more discussions about it:

https://sites.google.com/a/uci.edu/mingru-yang/programming/mkl-has-bad-performance-on-an-amd-cpu

https://www.reddit.com/r/matlab/comments/dxn38s/howto_force_matlab_to_use_a_fast_codepath_on_amd

https://github.com/flame/blis/issues/312

commented by (310 points)
Thank you Matt for your response.
Welcome to ITensor Support Q&A, where you can ask questions and receive answers from other members of the community.

Formatting Tips:
  • To format code, indent by four spaces
  • To format inline LaTeX, surround it by @@ on both sides
  • To format LaTeX on its own line, surround it by $$ above and below
  • For LaTeX, it may be necessary to backslash-escape underscore characters to obtain proper formatting. So for example writing \sum\_i to represent a sum over i.
If you cannot register due to firewall issues (e.g. you cannot see the capcha box) please email Miles Stoudenmire to ask for an account.

To report ITensor bugs, please use the issue tracker.

Categories

...