Matlab, AMD and the MKL

Discussion in 'Videocards - AMD Radeon' started by DiferMendos, Nov 16, 2019.

  1. DiferMendos

    DiferMendos New Member

    Likes Received:
    As we all know, Intels MKL is still playing this funny game and falls back to using the SSE Codepath instead of AVX2 if the vendorstring of the CPU is AMD.

    This is of particular horror, if you are using Matlab.

    So now I came across this in the www:

    Note that by default, PyTorch uses the Intel MKL, that gimps AMD processors. In order to prevent that, execute those lines before starting the benchmark:

    "export MKL_DEBUG_CPU_TYPE=5"

    You can find many of these if you google for it, not only for PyTorch. Apparently, this is an undocumented Debug Mode that forces the MKL to use AVX2 and overrides the vendor string result. Any of you cracks got a

    n idea how to test this in Matlab? It would surely help many users out there.
    Last edited: Nov 20, 2019

Share This Page