c/technology · by abhi9u@lemmy.world · 1yHardware-Aware Coding: CPU Architecture Concepts Every Developer Should Know https://blog.codingconfessions.com/p/hardware-aware-coding67 points · 8 comments · view on lemmy.world
8 Comments
call_me_xale@lemmy.zip · 17 pts · 1y
Can we just not with the AI-generated illustrations?
pixeltree@lemmy.blahaj.zone · 15 pts · 1y
TL:DR: minimize randomness, group variables by access frequency, and unroll loops if your compiler doesn't do that already
call_me_xale@lemmy.zip · 11 pts · 1y
tl;dr tl;dr: use a modern compiler.
bejean@lemmy.world · 4 pts · 1y
Do any compilers NOT unroll loops in high optimization modes? I was under three impression this was usually unnecessary.
pixeltree@lemmy.blahaj.zone · 3 pts · 1y
No clue, I was just frustrated with how much useless extended metaphor was in the article and thought I'd save people some time
InverseParallax@lemmy.world · 1 pts · 1y
Really depends on the target, llvm goes between unrollimg and vectorizing cleanly, to unrollimg to a ludicrous degree, to refusing to unroll period.
Some of it is subtarget specific, but sometimes it's just weird.
Gcc is evil incarnate, all it's passes are at war with each other, loop Canon form often broke vectorization and even unrolling period.
Lionel@endlesstalk.org · 1 pts · 1y
Is it worth reading
ElPussyKangaroo@lemmy.world · 5 pts · 1y
What about Claude-Aware coding tho? /s