4 ms·
> You can handle conditionals much better Because you can have a core set up for each branch and just pass to that vs. “context-switching” your core to execute
by bschne 3y ago
> You can handle conditionals much better
Because you can have a core set up for each branch and just pass to that vs. “context-switching” your core to execute the branch that ends up being taken?
- vrighter 3y agobecause each core has its own instruction counter
- Pet_Ant 3y agoBoth > Because you can have a core set up for each branch and > because each core has its own instruction counter You can have each core be a tighter loop because you can limit the types of cases it handles. But you also have your own instruction program counter you can take all sorts of branches in a way that you can't with SIMD, because in SIMD as the name implies you get only a Single-Instruction to deal with Multiple-Data. So if you need to change the behaviour depending on the exact value of the data, you are better off using separate cores than wider vectors.