Each back-end implements the same array abstractions, so most generic Julia code runs unmodified on any of them. To write portable kernels, use KernelAbstractions.jl; for portable high-performance algorithms like sorting and scans, see AcceleratedKernels.jl.