Intel Claims Sapphire Rapids up to 7X Faster Than AMD EPYC Genoa in AI and Other Workloads

20

Sapphire Rapids

(Image credit: Tom's Hardware)

Intel has shared a slew of new benchmarks of its fourth-gen Xeon Scalable Sapphire Rapids CPUs going head-to-head with AMD's fourth-gen EPYC Genoa processors, claiming up to 7 times more performance in AI workloads when comparing two 32-core chips. Intel also touts higher performance under certain conditions, like when Sapphire Rapids' in-built accelerators are brought into play, in a spate of standard general-purpose workloads. Intel's 56-core Xeon Max, the first x86 data center CPU with HBM memory, also takes on AMD's 96-core flagship in several HPC workloads, matching or exceeding AMD's bulkier chip.

Intel's performance comparisons come well after the company's launch of its Sapphire Rapids Xeons back in January of this year, but the company says its benchmark comparisons were delayed due to difficulties procuring AMD's competing EPYC Genoa chips, which launched in November of last year. The benchmarks come a day before AMD's AI and Data Center event that we're flying out to cover, so we'll attempt to get AMD's feedback about Intel's benchmarks while we're at the event.

With a few shipping OEM systems powered by AMD's Genoa in hand, Intel has conducted a wide range of benchmarks in multiple types of workloads spanning AI, HPC, and general-purpose workloads, to present its view of the competitive landscape. However, as with all vendor-provided benchmarks, these should be approached with caution. Intel claims it enabled all rational optimizations for both its and AMD's silicon for these tests, but be aware that the comparisons can be a bit lopsided, which we'll call out where we see it. The price of the chips used for comparison are also lopsided, too. We've included Intel's full test notes for the tested configurations in the relevant image albums below. With that, let's take a closer look at Intel's results. 

Paul Alcorn
Editor-in-Chief

Paul Alcorn is the Editor-in-Chief for Tom's Hardware US. He also writes news and reviews on CPUs, storage, and enterprise hardware.

  • FWIW, the compiler side of the initial AMX enablement work was already started in GCC 11, and has also been part of LLVM 12 since its late 2020 release. That being said, AMX is just a matrix math overlay for the AVX-512 vector math units.

    More like a “TensorCore” type unit for the CPU.
    Reply
  • Amdlova
    7 times the performance but the price...
    Reply
  • rtoaht
    AMD needs an answer to the AI accelerators. With the advent of generative AI, it is now mainstream.
    Reply
  • lightofhonor
    rtoaht said:
    AMD needs an answer to the AI accelerators. With the advent of generative AI, it is now mainstream.
    Their new 7040 chips have AI accelerators built-in. Not hard to imagine their EPYC line will get this sometime too.
    Reply
  • Tech0000
    AMX is, so far, only BF16 and INT8 data types matrix multiplications and nothing else (technically dot product).
    BUT it is foundational with more variations coming in the pipeline (reading intel's doc) FP16 etc
    They are also talking about complex valued data types in Granite Rapids etc.

    What makes matrix multiplications so important in AI is that it is the most complex component in the inner most loop in training, dominating the compute complexity and, importantly, memory bandwidth.

    By reducing the Matrix multiplication to a handful of assembly instructions
    1 tile load instruction: Throughput/Latency = 8/45
    1 tile multiplication instruction: Throughput/Latency = 16/52
    1 tile store (result): Throughput/Latency = 16

    you achieve reduction in over all latency and throughput (magnitudes):
    1. you only read the source matrix data once (not multiple times like when using any other method AVX, AVX2, AVX512...)
    2. the compute clock cycle latency of 8+16+16 = 40 clock cycles for a tile multiplication (a small 16x16 matrix) is an order of magnitude faster than any other method on a CPUs

    it is incredibly good use of silicon for AI apps.
    Reply
  • waltc3
    If Intel's marketing was a reflection of its hardware and sales, AMD would be lost...;) Fortunately for AMD, that's not the case...;)
    Reply
  • bit_user
    AI WorkloadsFirst off, there's simply no way a CPU without a comparable matrix-multiply can compete with AMX. So, let's get that out of the way, up front. Of course, for heavy AI workloads, I don't expect most people to be using a CPU as their main AI compute engine. Note that they're not comparing against GPUs or other AI accelerators!
    Credit to @PaulAlcorn , as I had noted the same things but he was already ahead of me:
    "We also see a ~5.5X advantage in BertLarge natural language processing with BF16, but that is versus Genoa with FP32, so it isn't an apples-to-apples test. Intel notes that BF16 datatypes were not supported with AMD's ZenDNN (Zen Deep Neural Network) library with TensorFlow at the time of testing, which leads to a data type mismatch in the BertLarge test. The remainder of the benchmarks used the same data types for both the Intel and AMD systems, but the test notes at the end of the above image album show some core-count-per-instance variations between the two tested configs -- we've followed up with Intel for more detail ."
    Further observations:
    Used Genoa with 2 DIMMs per channel (see end notes) - doesn't that incur a speed penalty? Also equipped Xeon with 2 DIMMs per channel. I wonder if the penalty is as much?
    Genoa had NPS=1 (NPS=4 typically yields better performance).
    Of course, they're using CPUs with the same core-count, when one of the main selling points of Genoa is that it has more cores.
    Regarding that last point:
    "per-core software licensing fees being the company's rationale for why these remain comparable."
    None of the software in their benchmarks has per-core licensing. I'm pretty sure it's all open source, even.

    General WorkloadsI don't have much to say here, except that AMD is clearly using higher core-counts in opposition to Intel's increased reliance on accelerators. So, it seems logical to use another factor, like price, to determine which CPUs to match up to each other.

    Also, where specified, most tests used NPS=1, except for the FIO test, GROMACS, and LAMMPS.

    Finally, some of the tests used RHEL or Rocky Linux, with a 4.18 kernel. You really have to wonder how many of the more recent optimizations got backported to these ancient kernels, for the respective CPUs.

    HPC WorkloadsIn this category, it would be really nice to have AMD's 3D V-cache equipped CPUs, but I guess they still have yet to launch the Genoa version? Maybe AMD is planning to do that at the Tuesday event.

    Again, I'm struck by how many of these benchmarks used an ancient 4.18 kernel. I would expect HPC users to be a lot more interested in running newer kernels, in order to extract the most performance from their massive hardware and energy expenditures. Not only that, but such old distros won't have the compiler optimizations needed to enable features like AVX-512 on Genoa. However, in some cases, they do seem to make a point of compiling with AVX2 on both CPUs.

    I'm pleased to see NPS=4, on all cases except Stream. I guess they felt they had enough bandwidth to spare, that they could allow this.
    Reply
  • bit_user
    Metal Messiah. said:
    FWIW, the compiler side of the initial AMX enablement work was already started in GCC 11, and has also been part of LLVM 12 since its late 2020 release.
    That actually makes sense, relative to when Sapphire Rapids was supposed to launch.

    FWIW, I think it really doesn't make much difference when they started building it into compilers, because it's not really the type of feature that I'd expect a compiler to automatically utilize. You'd have to explicitly insert intrinsics into your code, if you want the compiler to perform these ops, although maybe the compiler at least manages the registers for you?

    At least 99% of users will be simply utilizing it through a handful of libraries optimized by Intel, so it won't matter much if they had to write them in assembly language or what.

    Metal Messiah. said:
    That being said, AMX is just a matrix math overlay for the AVX-512 vector math units.
    😵‍💫
    No, I'm pretty sure it's not.

    Intel claims it has far higher narrow (int8) FMA throughput:

    Here, Locuza shows us it takes a real chunk of die space in each Sapphire Rapids version of Golden Cove:
    Source: https://locuza.substack.com/p/info-snack-alder-lake-m-raptor-lake
    And it adds 8x 1 kB tile ISA registers, which could theoretically be implemented via overlays on the same register pool used for ZMM registers, but I sure doubt it! Given that AMX has its own logic, and no instructions for direct interchange with the ZMM registers, it wouldn't be very practical to use the same underlying registers.

    Where did you even hear that? In all I've read about AMX, I've never come across such a statement.

    Metal Messiah. said:
    More like a “TensorCore” type unit for the CPU.
    What's funny is that it's even more like an actual core than Nvidia's Tensor cores. They actually do use the same CUDA registers as their SIMD instructions. In both Nvidia and Intel's case their dispatched from the same instruction stream, making neither a proper core in its own right.
    https://www.anandtech.com/show/12673/titan-v-deep-learning-deep-dive/3
    Reply
  • JayNor
    AMX has its own operations, storage, and register files.
    See the fuse.wikichip info from article June, 29, 2020, titled "The x86 Advanced Matrix Extension (AMX) Brings Matrix Operations; To Debut with Sapphire Rapids"
    Reply
  • bit_user
    rtoaht said:
    AMD needs an answer to the AI accelerators. With the advent of generative AI, it is now mainstream.
    AMD's response is clear: integrate CPU and GPU dies (with HBM) into the same package:
    https://www.tomshardware.com/news/new-amd-instinct-mi300-details-emerge-debuts-in-2-exaflop-el-capitan-supercomputer
    Reply