Compiler Engineer - Algorithmic Workloads Compilation
Systems, C++ and performancePosted over 2 months agofrom Mythic's own hiring page
- Work type
- RemoteIn the US and Canada
- Experience
- 3+ years
- Pay
- Not listed
- Posted
- Over 2 months agoOpen over a year
Skills it mentions
Add your skills to see which ones you have.
About the job
We’ve raised over $100M from world-class investors including Softbank, Threshold Ventures, Lux Capital, and DCVC, and secured multi-million-dollar customer contracts across multiple markets.
About the roleHelp push the boundaries of what can run on our accelerator. You’ll design compiler IRs and lowering strategies to support algorithmic workloads with irregular or dynamic control flow—loops, branches, and iterative methods—going beyond static neural networks. Working side by side with hardware engineers, you’ll influence ISA and execution model co-design to unlock new algorithm classes on analog and digital subsystems. The result: a compiler that makes complex algorithms practical to deploy while staying seamless for developers.
Here's what you will do
- Extend compiler IRs to represent algorithms not easily captured in DNN graphs including control flow and iterative computation
- Develop compilation strategies that unify analog compute with digital subsystems while maintaining performance and correctness
- Prototype and optimize algorithms with irregular or dynamic control flow in compiler IRs, applying techniques such as vectorization, predication, and scheduling
- Collaborate with hardware engineers to co-design ISA and features that improve support for algorithmic workloads
- Define a roadmap for higher-level programming abstractions that simplify prototyping and accelerate deployment
Here's the background we hope you will have
- 3+ years of professional experience in compilers or high-performance systems software
- Proficiency in modern C++ (C++14/17/20) and Python
- Familiarity with compiler IRs (e.g., MLIR, LLVM, or equivalent) and their use representing complex program structures
- Solid foundation in program analysis and optimization techniques (e.g., SSA form, loop optimizations, vectorization)
The following would be nice to have, but is not required
- Hands-on experience developing MLIR or LLVM dialects for control flow (e.g. scf, cf) or affine/polyhedral representations.
- Background in compiler-hardware co-design: working with hardware designers to refine ISA or execution models for efficiency
- Proven ability to prototype irregular or control-flow algorithms in compiler IRs and optimize them for performance and resource constraints
- Experience extending ML compiler stacks (ONNX, IREE, XLA, PyTorch, TVM) to support workloads beyond DNNs
What we offer
- The opportunity to make algorithmic and control-flow-heavy workloads practical on novel accelerator hardware.
- A role that bridges compiler design and hardware co-design, shaping both the IR and the accelerator architecture.
- A collaborative, innovative team that values engineering rigor, continuous integration, and user-focused design.
- Competitive compensation, equity, and benefits package.
Interested?Compiler Engineer - Algorithmic Workloads Compilation at Mythic
Apply on company site (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on C++, LLMs and GenAI, C and 4 more
Interview questions for this job
For the skills the ad mentions: C++, LLMs and GenAI, C, Deep learning, Python, Machine learning and PyTorch.
What's the problem with "using namespace std;"?C++
Consider two libraries called Foo and Bar:
using namespace foo; using namespace bar;Everything works fine, and you can call
Blah()from Foo andQuux()from Bar without problems. But one day you upgrade to a new version of Foo 2.0, which now offers a function calledQuux(). Now you've got a conflict: Both Foo 2.0 and Bar importQuux()into your global namespace. This is going to take some effort to fix, especially if the function parameters happen to match.If you had used
foo::Blah()andbar::Quux(), then the introduction offoo::Quux()would have been a non-event.From Stack Overflow: asked by akbiggs, answered by Greg Hewgill (CC BY-SA 4.0)
How does the encoder-decoder structure work at a high level in the Transformer model?LLMs and GenAI
The encoder-decoder structure in a Transformer is used for sequence-to-sequence tasks like machine translation. At a high level, the encoder processes the entire input sequence simultaneously, using self-attention to create rich, context-aware vector representations (the encoded state).
The decoder then uses a separate self-attention mechanism, masked to prevent looking ahead, to generate the output sequence one token at a time, autoregressively. The decoder also incorporates an encoder-decoder attention layer, allowing it to focus on the most relevant parts of the encoder's output for each token it generates.
From LLM Interview Questions and Answers Hub (Apache 2.0)
Difference between malloc and calloc?C
calloc()gives you a zero-initialized buffer, whilemalloc()leaves the memory uninitialized.For large allocations, most
callocimplementations under mainstream OSes will get known-zeroed pages from the OS (e.g. via POSIXmmap(MAP_ANONYMOUS)or WindowsVirtualAlloc) so it doesn't need to write them in user-space. This is how normalmallocgets more pages from the OS as well;callocjust takes advantage of the OS's guarantee.This means
callocmemory can still be "clean" and lazily-allocated, and copy-on-write mapped to a system-wide shared physical page of zeros. (Assuming a system with virtual memory.) The effects are visible with performance experiments on Linux, for example.Some compilers even can optimize malloc + memset(0) into calloc for you, but it's best to just use calloc in the source if you want zeroed memory. (Or if you were trying to pre-fault it to avoid page faults later, that optimization will defeat your attempt.)
If you aren't going to ever read memory before writing it, use
mallocso it can (potentially) give you dirty memory from its internal free list instead of getting new pages from the OS. (Or instead of zeroing a block of memory on the free list for a small allocation).Embedded implementations of
callocmay leave it up tocallocitself to zero memory if there's no OS, or it's not a fancy multi-user OS that zeros pages to stop information leaks between processes.On embedded Linux, malloc could
mmap(MAP_UNINITIALIZED|MAP_ANONYMOUS), which is only enabled for some embedded kernels because it's insecure on a multi-user system.From Stack Overflow: asked by user105033, answered by Fred Larson (CC BY-SA 4.0)
Cross-entropy loss explanationDeep learning
The cross entropy formula takes in two distributions, $p(x)$, the true distribution, and $q(x)$, the estimated distribution, defined over the discrete variable $x$ and is given by
$$H(p,q) = -\sum_{\forall x} p(x) \log(q(x))$$
For a neural network, the calculation is independent of the following:
What kind of layer was used.
What kind of activation was used - although many activations will not be compatible with the calculation because their outputs are not interpretable as probabilities (i.e., their outputs are negative, greater than 1, or do not sum to 1). Softmax is often used for multiclass classification because it guarantees a well-behaved probability distribution function.
For a neural network, you will usually see the equation written in a form where $\mathbf{y}$ is the ground truth vector and $\mathbf{\hat{y}}$ (or some other value taken direct from the last layer output) is the estimate. For a single example, it would look like this:
$$L = - \mathbf{y} \cdot \log(\mathbf{\hat{y}})$$
where $\cdot$ is the inner product.
Your example ground truth $\mathbf{y}$ gives all probability to the first value, and the other values are zero, so we can ignore them, and just use the matching term from your estimates $\mathbf{\hat{y}}$
$L = -(1\times log(0.1) + 0 \times \log(0.5) + ...)$
$L = - log(0.1) \approx 2.303$
An important point from comments
That means, the loss would be same no matter if the predictions are $[0.1, 0.5, 0.1, 0.1, 0.2]$ or $[0.1, 0.6, 0.1, 0.1, 0.1]$?
Yes, this is a key feature of multiclass logloss, it rewards/penalises probabilities of correct classes only. The value is independent of how the remaining probability is split between incorrect classes.
You will often see this equation averaged over all examples as a cost function. It is not always strictly adhered to in descriptions, but usually a loss function is lower level and describes how a single instance or component determines an error value, whilst a cost function is higher level and describes how a complete system is evaluated for optimisation. A cost function based on multiclass log loss for data set of size $N$ might look like this:
$$J = - \frac{1}{N}\left(\sum_{i=1}^{N} \mathbf{y_i} \cdot \log(\mathbf{\hat{y}_i})\right)$$
Many implementations will require your ground truth values to be one-hot encoded (with a single true class), because that allows for some extra optimisation. However, in principle the cross entropy loss can be calculated - and optimised - when this is not the case.
From Data Science Stack Exchange: asked by enterML, answered by Neil Slater (CC BY-SA 4.0)
How do you remove duplicates from a list?Python
See the Python Cookbook for a long discussion of many ways to do this:
If you don’t mind reordering the list, sort it and then scan from the end of the list, deleting duplicates as you go:
if mylist: mylist.sort() last = mylist[-1] for i in range(len(mylist)-2, -1, -1): if last == mylist[i]: del mylist[i] else: last = mylist[i]If all elements of the list may be used as set keys (that is, they are all hashable) this is often faster:
mylist = list(set(mylist))
This converts the list into a set, thereby removing duplicates, and then back into a list.
From Python Frequently Asked Questions (PSF License Version 2)
When have you faced a challenging situation?Behavioural
Employers usually base questions on jobs you have done in the past. This gives you the chance to talk about your experience. For instance, they might ask:
- when have you faced a challenging situation?
- can you tell us about a personal achievement at work?
- have you ever taken the initiative?
- have you ever failed at a task?
Your answers should reflect the skills the employer wants. Be positive and tailor your examples to the job description.
If you don't have much work history, you can use examples from outside of work. You can also use examples from volunteering experience.
Use the STAR method to help structure your answers.From National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- Software Engineer, Network (C++)SpaceX, San Francisco Bay Area, Seattle, on-siteYesterday
- Senior Software Engineer (C++) - Sensor PipelinesLatitude AI, Remote, San Francisco Bay Area +12 weeks ago
- Staff Software Engineer - Compiler & Spark RuntimeSnowflake, Remote, San Francisco Bay Area +13 weeks ago
- Software Engineer, C++ (Onboard Platform)Applied Intuition, San Francisco Bay Area, on-site4 weeks ago
More like this: C++ and systems jobs in San Francisco Bay Area (50), Jobs in San Francisco Bay Area (9,193), C++ and systems jobs in the USA (107) and Remote C++ and systems jobs in the USA (54)




