r/Compilers • u/General_Purple3060 • Jul 06 '26
Heterogeneous computing didn't create a hardware problem. It exposed a missing language concept.
Everyone is trying to improve heterogeneous programming with better APIs.
CUDA HIP SYCL OpenMP.
But maybe the real problem isn't APIs.
Maybe programming languages simply don't have a way to represent execution domains.
We model
- data
- types
- scope
- inheritance
but not where computation belongs.
Once code crosses into another execution domain, much of the language semantics disappear.
I'm beginning to think heterogeneous computing isn't asking for a better runtime.
It's asking for a new language abstraction.
Am I missing something obvious?
0
Upvotes
View all comments
Show parent comment
1
u/General_Purple3060 Jul 09 '26
Maybe this example explains what I mean:
In GCC,
__global__is just an attribute.In the aet compiler, it's part of the language semantics: the compiler knows that
setData()belongs to a different execution domain as soon as it parses the program.That lets the AET compiler reason about execution domains throughout the compilation process, instead of treating them as ordinary API calls.
So my point isn't that an API can't launch work on a device. It's that the aet compiler makes the execution domain part of the program's semantics, rather than just another API call.