Potential speedup for MKL operations on AMD Ryzen/Threadripper/Epyc

2 posts / 0 new
Last post
gdodge77
Potential speedup for MKL operations on AMD Ryzen/Threadripper/Epyc

Hi all, thought I'd share this in case anyone is using newer AMD hardware. Apparently Intel's MKL library runs a hardware check, and by default will prevent the AVX2 unit on AMD processors from functioning. For a detailed example of the speedup in some workflows, see here.

On linux, the workaround is quite simple,  set the environment variable below. Note that intel may disable this debug command in the future, but for now it works really well.

export MKL_DEBUG_CPU_TYPE=5

Cheers,

-Greg

timgrant
Thank you Greg - this is very

Thank you Greg - this is very useful!

Log in or register to post comments