News for hackers. Stuff that matters.
Re:CPU Introspection: Intel Load Port Snooping by naveen99 on Tuesday December 31, 2019 @04:38PM (#21924952)
I don’t understand why intel and amd can’t give us access to the cpu cache the same way NVidia does with CUDA for local and shared memory on the gpu. I just don’t buy the hand waiving that the cpu can magically do branch prediction better than a programmer with a static c compiler who actually know what they want in the future. maybe if they had offered cache control on the itanium or phi they wouldn’t have had to cancel them despite the need for reprogramming user software which didn’t stop CUDA.
Re:CPU Introspection: Intel Load Port Snooping by loa_in_ on Wednesday January 01, 2020 @08:25AM (#21927911)
I agree that we should be able to tell the processor which branch is more likely. Even something as simple as a flag to select between "I prefer you take any jump you encounter" and "I prefer you skip all jumps in this macroblock for speculation purposes" (and also "try to predict smartly" to stick to how it's working now, aka what this article is about). This would give a determined programmer everything he needs to make sure his program is executed optimally.
Re:CPU Introspection: Intel Load Port Snooping by gamozolabs on Thursday January 02, 2020 @01:47PM (#21938364)
Back in Pentium 4 days you could use the DS and CS override prefixes on conditional branches to hint taken and not taken, respectively.

Kinda neat, but it's not a thing anymore.

Some more info here: https://stackoverflow.com/questions/14332848/intel-x86-0x2e-...