If you're an OpenCL coder on Linux, though, you might want to consider disabling them.
Many readers will remember the furore over Spectre and Meltdown, security exploits that targeted CPUs from AMD and Intel, but they appear so frequently now that few announcements generally hit the headlines. When it comes to the same deal with GPUs, however, most people barely notice. But if you knew that your Intel GPU could be losing up to 20% of its compute ability because of security mitigations, that could certainly raise an eyebrow or two.
Such a performance impact comes straight from the horse’s mouth, or rather via an Ubuntu bug report in this case (via Phoronix). Apparently, the developers of the Linux distro are working with Intel to have the security mitigations disabled by default, in order to recoup up to 20% of lost compute performance.
One can already do this for Intel Graphics Compute software through the use of an appropriate command (a rather cool-sounding neo_disable_mitigations), but this is about having it activated for you so that you’re not waving goodbye to one-fifth of your Intel GPU’s processing ability.
I hasten to add that this is purely for use with Linux applications that use OpenCL or Intel’s oneAPI Level Zero. Workstations with Arc GPUs, crunching through hours of compute calculations, are far less likely to be exposed to malware and other nefarious attacks than an average gaming PC, so the performance gains outweigh the increased security risk of switching off the mitigations.
What surprised me was just how big a performance impact these measures have. Countering the likes of Spectre and Meltdown barely affected CPUs, and in gaming, there’s practically no difference at all. But 20%? Yikes.
While no game uses OpenCL or Level Zero, there are plenty that involve a lot of compute work for rendering, and it’s not clear whether the security mitigations are permanently implemented in Windows or Intel’s GPU drivers. I suspect they’re not, simply because I’ve seen plenty of cases where an Arc graphics card performs pretty much in line with its specifications, compared to the competition.
But if your line of work involves an Intel GPU, Linux, and the aforementioned APIs, then you might want to delve a little deeper into all of this, because gaining 20% more compute with a single line of code isn’t to be sniffed at.