Accelerated Computing Across GPU Vendors: What Performance Portability Requires

Accelerated computing across GPU vendors: why portable code is not equally fast, and what studies show on layers, directives, autotuning and PP.

Accelerated Computing Across GPU Vendors: What Performance Portability Requires
Written by TechnoLynx Published on 12 Jun 2026

Getting code to compile and run correctly on NVIDIA, AMD and Intel GPUs is the easy part of cross-platform accelerated computing. Getting it to run fast on each of them is the hard part. A 2026 study that ported the gPLUTO astrophysics code across vendors concluded that correctness portability across modern GPUs is readily achievable, while performance portability remains a significant challenge. Earlier studies, surveyed in the 2026 KernelForge.jl paper, put the penalty of portability layers at roughly 5-30% against architecture-specific code, and one reported 2-3x slowdowns on NVIDIA V100s against native CUDA. Peak speed on each vendor still usually needs per-architecture parameters, and sometimes per-architecture kernels.

That penalty is not unavoidable. The same body of work shows portable models matching or beating native ports written with similar effort, and a JIT-specialising proof-of-concept library, its parameters tuned so far for one GPU, that claims to remove the abstraction overhead behind the 5-30% figure. What the gap depends on is the subject of the rest of this article: the hardware, the compiler backend, the algorithm the layer picks for you, and whether anyone tuned the launch parameters for the target.

Why Identical Code Runs at Different Speeds on Each Vendor’s GPU

In one cross-vendor study, identical OpenMP code met different bottlenecks on each GPU, from the compiler backend and the memory hierarchy. In the gPLUTO study, one OpenMP implementation ran about three times slower at application level on an AMD MI250X than the OpenACC baseline on an NVIDIA A100, with individual kernels up to an order of magnitude slower, driven by sensitivity to strided memory access and by compiler limitations. The authors judged that performance portability is governed more by compiler maturity and backend behaviour than by the programming model alone: NVIDIA’s NVHPC toolchain carries more than a decade of CUDA-targeted heuristics, while ROCm’s OpenMP implementation is a more recent effort.

The second source of gap hides inside the portability layer itself. In the KernelForge.jl benchmarks, Kokkos’s parallel scan ran 2.6x slower than CUB on an NVIDIA GPU because Kokkos routes the scan through its own implementation rather than the decoupled-lookback algorithm, a difference the authors attribute to an algorithmic choice rather than abstraction overhead.

A third is ecosystem maturity. A 2024 study of particle-physics track reconstruction kernels noted that portability toolchains for AMD and Intel GPUs are generally less mature and stable than for NVIDIA. So when a portable code is slow on one vendor, the first useful question is which of the three is responsible, and only a profiler on that target answers it.

Which Differences Between NVIDIA, AMD and Intel GPUs Force Per-Platform Tuning?

The four vendors’ architectures share a common core. A 2026 cross-vendor analysis of GPU instruction sets across NVIDIA, AMD, Intel and Apple found ten computational primitives present on all four, six “dialects” where vendors implement the same concept with different parameters, and six genuine architectural divergences. The sections below cover four such differences.

Warp and Wavefront Width

AMD’s own HIP documentation describes RDNA GPUs as executing primarily in 32-thread warps, while its CDNA guidance says to optimise for 64-thread warp granularity. NVIDIA’s warp is 32 threads. In a 2025 Kokkos shallow-water solver study, the authors hypothesised that a lightweight reduction kernel on AMD’s Frontier lost performance partly to low occupancy relative to the 64-thread wavefront. The Ginkgo sparse linear algebra library keeps warp size and launch bounds out of its shared kernels and sets them per backend, so each backend gets its own optimal values.

Memory Coalescing and Cache Size

Access pattern decides how much of the advertised bandwidth a kernel sees. AMD’s HIP documentation states that coalesced access can reach 70-90% of peak bandwidth while random access might reach only 5-15%. The vendors also forgive bad patterns differently. In the gPLUTO study, the MI250X has a 16 KB vector L1 per compute unit and an 8 MB L2 against 192 KB of L1 and 40 MB of L2 on the A100, and those smaller caches amplified the penalty for strided access. The pattern can also run the other way: the shallow-water solver team judged latency-bound behaviour on NVIDIA likely to stem from its flattened 1D indexing, behaviour that did not appear on Intel and AMD hardware.

Shuffle and Other Warp-Level Primitives

Removing warp shuffles hurts some vendors far more than others. In the 2026 ISA study, a reduction written with only barriers and shared memory reached 62.5% of the native version on an NVIDIA T4, which used __shfl_down_sync for the final 32 elements, but 97.8% on an Apple M1, whose scheduler tolerates the extra barriers. All four vendors implement shuffle in hardware under different names (__shfl on NVIDIA, DPP and ds_permute on AMD, sub-group shuffle on Intel). The ISA study concludes that shuffle must be a mandatory primitive of a universal abstraction to achieve portable performance.

Register Pressure and Occupancy

Register budgets differ per device, and the optimum is a balance rather than a maximum. A 2019 SYCL kernel study explained that larger tiles and vectors raise registers per thread, which cuts the number of concurrent threads available to hide memory stalls, and that the best tile sizes and vector widths differ by device depending on load-store units, register count and vector maths support. The gPLUTO profiling shows how sharp the cliff is: more than 170 registers per thread collapsed occupancy to 12% and triggered massive spilling, regardless of programming model. Compilers differ in subtler ways too; KernelForge.jl saw parity between 8-bit and 32-bit throughput on an NVIDIA A40 that did not hold on an MI300X, which its authors attribute to the ROCm compiler handling type promotion differently.

The thread hierarchy and launch model behind these trade-offs are covered in our guide to how a CUDA kernel executes; the point here is that each knob has a different best value per device.

Can SYCL, Kokkos, RAJA or OpenCL Get Near-Native Performance on Every Target?

On some kernels, yes; on every kernel and every vendor, no. A 2024 study, “Taking GPU Programming Models to Task for Performance Portability”, compared CUDA, HIP, Kokkos, RAJA, OpenMP, OpenACC and SYCL on five proxy applications across four production supercomputers (Summit, Frontier, Perlmutter and Corona). The authors specifically did not tune launch parameters, so the results reflect out-of-the-box performance with minimal porting effort.

Kokkos, RAJA and SYCL came out as the most promising performance-portable models. Native CUDA was best or within 3% of the best in seven of ten cases on NVIDIA systems. Native HIP, by contrast, was beaten in several cases on AMD, notably XSBench, whose HIP port had been produced by Hipify as a syntax substitution of the CUDA code. The authors judged that translated HIP port not a fully optimised baseline. Between the layers, Kokkos tended to do better on AMD and RAJA on NVIDIA, while SYCL won more consistently on reduction-heavy and compute-bound codes; reductions remained a bottleneck for RAJA, Kokkos and OpenMP.

The 2024 track-reconstruction work found Alpaka and Kokkos close to native on NVIDIA, while its SYCL and std::par versions were significantly slower. Reguly’s 2023 study of bandwidth-bound applications found SYCL slightly ahead of native approaches on average on GPUs, while noting that SYCL does not remove the need for different algorithms on different hardware. A 2021 random-number-generation study reached native parity by having SYCL call into cuRAND and hipRAND through interoperability, which also means devices without a vendor library cannot be served that way. OpenCL, for its part, was judged by the 2019 SYCL-DNN authors to have an interface too low-level for building easily tunable kernels.

A 2026 study of portability-layer selection finds that each layer performs better at some tasks and worse at others, and that application and kernel characteristics can inform the choice. For the API-level comparison itself, our piece on choosing between CUDA, OpenCL and SYCL goes deeper than this page does.

Approaches Compared on the Measured Evidence

Approach What the measured studies show Where it falls short
Native CUDA on NVIDIA Best or within 3% of best in seven of ten cases (2024 programming-models study) Runs on one vendor’s hardware only
HIP from translated CUDA Hipify-style XSBench port beaten by Kokkos and SYCL on AMD (2024 programming-models study) Translation alone does not guarantee AMD performance
Kokkos Strong PP in the 2024 programming-models study and near native on NVIDIA in track reconstruction Reductions remain a bottleneck, and its own scan ran 2.6x slower than CUB
RAJA Strong PP, tended to beat Kokkos on NVIDIA, supports incremental porting Reductions remain a bottleneck
SYCL Often matches or beats native ports, highest PP in the 2024 programming-models study Significant slowdown in one track-reconstruction kernel; still needs per-hardware algorithms
OpenMP / OpenACC directives Easiest porting path Weaker performance portability in several cases

Porting CUDA to HIP: What Carries Over

In one library’s tests, HIP compiled for NVIDIA GPUs added negligible overhead over native CUDA. When the Ginkgo team compiled their HIP port for NVIDIA GPUs in 2020, half the test cases were within 3% of native CUDA and 90% within 10%. That fits a point we hold: a vendor API is not faster because it is the vendor’s.

What HIP lacked was functionality. HIP at the time lacked sub-warp cooperative group operations such as shuffles and votes, so Ginkgo implemented its own, and its most heavily tuned kernels still needed extra attention. The inference-path version of this porting question, including why translated code often underperforms on AMD, is the subject of our article on HIP vs CUDA and porting off CUDA lock-in.

Why Directive-Based OpenMP and OpenACC Hit a Ceiling

Directives give an easier porting experience but, in several cases, weaker performance portability. The 2024 programming-models study found OpenMP and OpenACC unable in several cases to match the performance portability of the other models, with OpenMP struggling on reductions, especially on AMD GPUs. They are not uniformly weak: OpenMP was the best performer across platforms for XSBench.

The trouble is that the compiler makes decisions such as grid size, and the best directives vary by compiler and architecture. In the gPLUTO port, matching OpenACC performance with OpenMP needed careful redesign rather than mechanical pragma replacement, plus profiling and kernel-specific tuning. One kernel ran 47x slower under OpenMP in a 2D configuration, caused by spilling from conservative privatisation of C++ wrapper objects and by the compiler choosing a grid with 2.5x less parallelism; forcing a larger grid through num_teams or thread_limit reintroduces machine-specific tuning. Alternative directive formulations of a single kernel varied runtime by 22x.

What else is needed follows from those failures. The gPLUTO authors list architecture-aware tuning, detailed profiling and data-layout transformations, and describe recovering performance from OpenACC on NVIDIA to OpenMP on AMD as intrusive work (loop reorderings, layout changes, direction-specific specialisations) rather than search and replace. Directives are a sensible way to get a legacy code onto GPUs; we would not treat them as the performance-portability strategy for the hot kernels.

Do Kernels Need Autotuning to Stay Fast Across GPU Architectures?

For parameter-sensitive kernels, the evidence says yes. A 2025 study of LLM attention kernels on an NVIDIA A100 and an AMD MI250 found that running one GPU’s optimal configuration on the other cut performance by at least 20% and by up to an order of magnitude, and some configurations were not even valid on the other platform. A 2023 benchmarking suite for kernel tuners found transferred optimal configurations delivered anywhere from 58.5% to 99.9% of the optimum, depending on architecture. The same work found that which parameters matter is fairly consistent across GPUs, while their best values have to be found per architecture.

Configuration choice matters even on a single GPU. The SYCL-BLAS results show three different tile configurations winning on the same device for small square, medium rectangular and large matrices. Runtimes sometimes do part of this for you: in the 2021 RNG study, the SYCL runtime picked 1024 threads per block on an A100 where the native code had fixed 256.

When autotuning is in place, a portable kernel can compete. The attention study’s autotuned Triton kernel was broadly competitive on both GPUs and at best 2.3x faster than flash_attn, using under 2% of the code. For contrast, the hand-optimised route required manually changing more than 40% of flash_attn to reach state-of-the-art performance on the MI250.

Autotuning has real costs. Triton’s built-in autotuner adds launch overhead and repeats its search in every new process, and it still needs the developer to supply the candidate configurations, a choice that produced nearly a 20x performance difference on complex kernels. The same paper’s remedies are caching results with their environment dependencies and moving the search off the critical path, ahead of time or into idle GPU time.

Start by exposing tunable parameters in the code, as KernelForge.jl (architecture-specific values chosen at compile time without touching the algorithm layer) and Ginkgo (launch parameters in per-backend files) do. Then profile on each target, and invest in automated search only for kernels where the profile shows parameters are what limit throughput. A kernel bound by a missing primitive or a bad access pattern will not be rescued by a better tile size.

How Do You Tell Whether an Application Is Actually Performance-Portable?

The measure the studies above use is the PP metric of Pennycook, Sewall and Lee (2016): the harmonic mean of an application’s performance efficiency across a chosen set of platforms, defined as zero if the application fails on any of them. The zero is deliberate, so that an unsupported platform cannot be hidden in an average. The 2024 programming-models study shows it biting: OpenACC could not build CloverLeaf for AMD, so its PP for that application is zero, against 0.98 on the two NVIDIA systems where it did run.

Which efficiency you feed in changes what the number means. Architectural efficiency (achieved performance as a fraction of theoretical peak) shows how well the code uses the hardware; application efficiency (a fraction of the best observed performance on that platform) also captures the penalty of the abstraction and of choosing the wrong algorithm. With a single implementation and no reference result, architectural efficiency is the only option, but it hides cases where a better algorithm would have done more on some platform.

The metric is open to misrepresentation. Its authors warn that PP is only meaningful alongside the platforms and problem used to compute it, and later work has argued for arithmetic-mean variants instead of the harmonic mean. The shallow-water solver team found a fair cross-architecture setup hard to build, because a fixed problem size underuses some GPUs while a memory-proportional size gives larger GPUs larger problems. They also noted that maintaining optimised per-architecture versions purely as baselines works against the point of portability. Hardware counters do not help as much as one hopes, since metrics that are analogous across vendors are not numerically identical.

Checklist for a Portability Measurement You Can Defend

  • Fix the platform set and the problem, and publish them with the score.
  • Build every variant with the same pinned compilers, dependencies and flags; the 2024 programming-models study used Spack environments per system for this.
  • Choose application efficiency when a credible best-known result exists for each platform, architectural efficiency when it does not, and say which you used.
  • Count an unsupported platform as zero rather than dropping it.
  • Look at the per-platform efficiencies, not just the aggregate; cascade plots show consistency that a single PP value hides.
  • Measure per kernel as well as end to end, using roofline analysis with each vendor’s profiler (Nsight Compute, the ROCm profiler, Intel Advisor).
  • Check the layer’s own runtime overhead against a native call where one exists, as the VAVS metric does.
  • Track the score from early in development, before divergence becomes expensive to undo.

Measuring the hardware, rather than the application, is a separate job that LynxBenchAI does across accelerators with stock PyTorch; its comparison of what the AMD MI300X spec sheet claims and what measurement shows is one example.

Scoping Portability Work to a Trigger

A portable API makes multi-vendor support possible, but the studies above still found per-target work necessary: kernels sized for the warp width, access patterns fitted to the cache hierarchy, shuffle exposed where the hardware depends on it, and launch parameters tuned per device. For a broader account of what vendor neutrality does and does not deliver, see our article on hardware-agnostic GPU compute.

We treat reaching a new hardware target as GPU performance engineering in its own right, worth doing when there is a measurable trigger: a performance ceiling on the current platform, a deployment target that forces a different vendor, or a lock-in cost someone can name. Without one, portability work has less value. With one, the right first step is to profile on the new target before optimising, because the context for each fix comes from profiling.