Menu ▾ ▴

#1038 Knights Landing support

open-remind
None
5
2016-10-26
2016-10-26
Dave Love
No

I'm interested in Knights Landing (avx512) support. Is it known whether
the existing Phi support should work on that if the architecture was
identified properly? (I don't know enough about the different
varieties of avx512.)

If it's worth trying, could you point me at where to add the right
cpuid items for the build, and suggest anything else relevant, and
I'll have a go and report.

Discussion

  • R. Clint Whaley

    R. Clint Whaley - 2016-10-26

    Dave,

    I do not have access to Knight's landing at the moment.

    Earlier developer versions of ATLAS had some prototype PHI support, but MKL was still kicking my butt pretty bad.

    Someone at Intel told me that KL was supposed to not depend on contexts (mapping at least 2 threads to same core) to achieve peak, which was a real barrier to portably good performance for me on the phi, but I haven't had a chance to test that out.

    I think it is very unlikely the present developer is good (and the stable should be worse). It is possible it can still be built, but I can't even guarantee that!

    If it does work, probably the best bet would be to tell configure it is a PHI (so it does cross-compilation, assuming that's needed for KN), but then say no to archdefs. So, something like adding:
    ---accel=2 --rtarg=PHI node -Si archdef 0

    I think it very unlikely to work, or to get good performance if it does, so I'd just use MKL for now if that works for you.

    I think even if the above works, ATLAS will be using the super-funky process affinity needed for the PHI, which is probably a loser on the updated machine.

    I am currently working on supporting that kind of scale in the developer series, but I am not there yet. Phi was such a bastard to get right, I decided to wait until I get extremely good scaling on high core count CPUs before trying again on accelerators.

    BTW, even the older developer series that worked on the PHI only worked running on the PHI as a parallel machine (i.e. I never wrote an interface that could run from the host) . . .

    Sorry,
    Clint

     
    • Dave Love

      Dave Love - 2016-10-27

      Thanks. It sounds as if there might be some confusion, though. This isn't a coprocessor/accelerator, but really just a 64-core. 4-way SMT, AVX512 server with a special memory system. (I don't think a coprocessor version is out.) Yes, you get the full SIMD performance from a thread per core as far as I've measured, and the main interest would be in serial dgemm rather than multithreading.

      I'm afraid I don't really understand the build system or have time to investigate, but with 3.11.39 I tried

      ../configure --accel=0 -Si archdef 0

      and got errors so it didn't generate the makefile properly. I can post output if that was the right thing to try, or do something else, if it's of interest, but it sounds as if it isn't worth pursuing.

       
      • R. Clint Whaley

        R. Clint Whaley - 2016-10-27

        Yep, the --accel is definitely not needed for CPU version!

        I think you should be able to just install as normal on such a system, then. You'd need the latest developer, and you'd want to set PentiumCPS as outlined:
        http://math-atlas.sourceforge.net/atlas_install/node25.html

        You might also need to set the thread IDs to use (to avoid using the virtual cores, which thrashes the cache), as described:
        http://math-atlas.sourceforge.net/atlas_install/node21.html

        The biggest problem is that I haven't enabled AVX512 in the code generators yet, so the only decent kernels you'd get are the ones I hand-tuned (very roughly) for the PHI.

        I can't imagine w/o the code generators I'd be competitive with MKL, but things should be much better than with an accelerator. W/o archdefs, the search would take half of forever, so up to you if you want to try an install. If you do, let me know what the performance looks like when you are done!

        Right now, I'm doing some work urgently needed for a paper, and so don't have time to mess with it. If I get some time, is there any chance you'd be interested in giving me a login so I could do some ATLAS work on your system?

        Thanks,
        Clint

         
  • R. Clint Whaley

    R. Clint Whaley - 2016-10-26
    • status: open --> open-remind
    • assigned_to: R. Clint Whaley
     

Log in to post a comment.