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 06 '26
Let’s look at a concrete code example. It might be easier to explain this way:
Here,
__global__means the method's execution domain is explicitly bound to the MTCS device at the semantic level.The compiler handles this natively. General optimizations (like loop unrolling, dead code elimination, etc.) are performed universally across the single pipeline, while the backend decouples platforms by dispatching platform-specific optimizations through an object-oriented target model (e.g.,
MtcsTarget).