Four Kinds of Job a GPU Does Worse Than the Processor Beside It
Last timeReading the Numbers on the Box
A GPU loses on jobs that are too small, that will not split, whose neighbouring items take different paths, or that have a deadline on one item. Each follows from how it is built.
Too small
Seven lessons have explained how a GPU is built. Each explanation carried a condition, and a job that fails a condition is a job the device does worse than the processor beside it. This lesson collects the four failures, using numbers already worked out.
The first is size. Lesson six gave the device a fixed cost and two crossings of the link, and found a break-even size of 2.44 megabytes on the illustrated machine. A job of one megabyte takes the host 0.5 ms and the device 1.09 ms. Lesson two gave a second threshold. Design B needed more than 4 items to beat design A at all, and 16 to run at its full rate. A device with thousands of workers needs thousands of items at once.
Will not split
The second is the part that will not divide. In lesson three a job with 30 seconds in 100 undivided took sixteen plain workers 34.4 seconds and one fast worker 25. Keeping that part on the host is better, and still leaves a ceiling: with 30 per cent undivided no device makes the job more than 3.3 times faster.
Neighbours disagree
The third is subtler, because the work does split. Lesson four showed that a group shares one stream of instructions, so it runs every side of a decision that any member takes. One worker in 32 choosing a 40 step side over a 10 step side cost the whole group 50 steps and left 78 per cent of its work slots empty. Jobs whose items each go their own way, such as following links through a structure or parsing text, meet this at every step.
The lesson stops here
5 more paragraphs to go
You have read the opening. The rest of the argument, the problems that check whether it landed, and the lines worth keeping at the end all come with a plan.
The first lesson of every course in the library reads the whole way through, free, so you can see exactly what the rest of them are.
See the planThe contentsThis is the reading half
Starting the course gives you your own copy of it. Every idea on every page has problems standing under it, marked with a reason rather than a tick, and any sentence you do not believe can be opened and argued with. None of that can happen on a page nobody owns.
The contents