1

I am just reading the cpu intrinic sets of AVX512 in Xeon Phi processors, but it seems that traditional data type converting method in sse doesn't work in avx512, so can I ask that are there any similar cpu set in avx512 can convert unsigned char array to short data type array? Thanks in advance!

Paul R
  • 208,748
  • 37
  • 389
  • 560

1 Answers1

5

Knight Landing (KNL) unfortunately does not have the AVX512BW subset of instructions which includes operations on 8 bit and 16 bit quantities. Otherwise you could just use _mm512_cvtepu8_epi16.

Eventually the forthcoming Skylake Xeon (Purley - due out 2017 - not to be confused with existing Skylake CPUs) should have AVX-512 which does include the AVX512BW subset, but until then you're out of luck, although you can of course still use SSE and AVX2 on KNL to do this kind of thing.

Paul R
  • 208,748
  • 37
  • 389
  • 560
  • Which parts are you referring to specifically? The "small" Skylake-based Xeons in the E3 family are [available now](http://ark.intel.com/products/codename/37572/Skylake#@Server) – njuffa Sep 27 '16 at 04:42
  • @njuffa: no, this would be Purley, which will have AVX-512 - I believe it's still due out in 2017 and it will be marketed as Xeon Skylake, even though it's a very different beast than current Skylake branded CPUs. – Paul R Sep 27 '16 at 04:59
  • Is "Purley" really a very different beast, or simply variants that comprise the E5 and E7 lines of the Skylake generation? – njuffa Sep 27 '16 at 05:03
  • Well the fact that Purley has AVX-512 makes it very different in my eyes, but it's still technically Skylake. We won't see AVX-512 on consumer CPUs until Cannonlake it seems (2018 ?). – Paul R Sep 27 '16 at 05:09
  • 3
    I got fed up waiting for AVX512 and I moved back to GPGPU and also VR. – Z boson Sep 27 '16 at 13:23
  • 1
    @Zboson: long time no see - I wondered where you'd got to these days! – Paul R Sep 27 '16 at 13:24
  • 1
    @PaulR, well I also moved to a new city and will be starting a new job. I will be working at the company which invented object oriented programming and the first OO programming language (which is ironic since I'm not the biggest fan of OO programming). – Z boson Sep 29 '16 at 12:34
  • 1
    Well I had to Google that but it sounds like a place where the beer is very expensive. ;-) Anyway, good luck in your new job and new city! – Paul R Sep 29 '16 at 12:42