Plan the optimisation of a kernel on a simulated accelerator

HardConcept30 minSWEPro outline

The question

You get a working but slow program for a simulated accelerator with scratchpad memory, wide vector instructions, VLIW bundles and several cores. The task is to traverse many trees in parallel as fast as possible, measured in simulated cycles.

How do you attack this in two hours?

What the interviewer is looking for

  • Measures first and finds the bottleneck
  • Exploits each hardware feature in turn: cores, SIMD, VLIW packing, scratchpad
  • Keeps a correctness check running at all times
  • Prioritises the biggest wins first
  • Uses AI tools sensibly if allowed

Your answer

Saved in this browser only. Nobody else sees it.

Why this question

Written by BlogLLM in the style of a publicly reported Anthropic question type: make a parallel tree traversal run as fast as possible on a simulated accelerator with a tiny instruction set.

Reported in: anthropic.com

Practice question written by BlogLLM based on publicly reported interview formats. Not an official Anthropic question.