Skip to main content
gamedev.net
🔒 Locked

SIMD 256-bit

Started by dpadam450 4 replies 1.5k views
Original Post
dpadam450
dpadam450

I've been starting to optimize my code in anyway possible. I saw that some cpu's actually have 256-bit SIMD, but I was wondering if there is a way to detect this and fallback to the 128-bit on an unsupported cpu, or how else to deal with this.

NBA2K, Madden, Maneater, Killing Floor, Sims 
Nypyren
Nypyren

Remember, the intrinsics will determine the code to generate at compile time. If you want runtime fallback in a single executable you need to use cpuid-based feature detection as well.

dpadam450
dpadam450
Quote

If you want runtime fallback in a single executable you need to use cpuid-based feature detection as well.

Right, that was on that website, that was what I was looking for run-time detection.

NBA2K, Madden, Maneater, Killing Floor, Sims 
dpadam450
dpadam450

Sadly the 256 simd was the same as my normal matrix multiplication. 128 simd was 2ms faster.

NBA2K, Madden, Maneater, Killing Floor, Sims 

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.