4 ms·
Why? Isn't the CPU will cost more than GPU because of more general instruction set?
by achempion 6y ago
Why? Isn't the CPU will cost more than GPU because of more general instruction set?
- jacquesm 6y agoOn a per-flops basis yes. But it all depends on your workload, for some workloads GPUs are a better match than CPUs and vice-versa.
- pjc50 6y agoNot really: the CPU costs more and can handle more workloads because it has more complicated control flow. These days, arithmetic is cheap and control flow is expensive. GPUs and SIMD achieve high throughput by tying a set of arithmetic units together with the same control flow. As soon as you get complicated data-dependent workflows - as soon as you put "if" in your code or a virtual method - the GPU starts getting less efficient. It's very much a "train vs car" argument: a train can deliver a large number of execution units , provided they're all going to the same place, whereas a car can re-route far more easily.
- neatze 6y ago"train vs car" argument - really nice analogy.