Photo of Sanjana Mali

MS Computer Science · UC Davis · expected June 2027

Sanjana Mali

I work on the path from a high-level graph algorithm to the GPU code that runs it: how to specify it precisely, how to check the specification is right, and what the translation to hardware forces you to decide.

I am a master's student in Prof. John Owens' group at UC Davis, where I work with EDGE, a tensor-algebra framework that writes graph algorithms as cascades of extended Einsums. Before research, I spent four years building payment systems at ACI Worldwide.

Research

EDGE (Extended General Einsums for Graph Algorithms) was developed by my mentor Toluwanimi Odemuyiwa with Joel Emer and John Owens (arXiv:2404.11591). It separates what a graph algorithm computes from how it executes. That separation makes it possible to reason about parallel execution strategies, memory access patterns and GPU mappings from one specification. My work has three parts: writing algorithms in EDGE, building tools that verify and explain them, and lowering them by hand to find what a compiler would need to check.

Algorithm write-ups

I learned EDGE by writing cascades for algorithms that stress it in different ways. Each has a tutorial, hosted on edge-lang.org.

Direction-optimizing BFS

Top-down and bottom-up traversal turn out to be one candidate-edge computation, differing only in which mask is applied first. The implicit graph transposition becomes explicit through a rank-name flip on the graph tensor. Connects to the switching heuristics in Beamer et al. (2012), Gunrock, Ligra and XBFS.

With T. Odemuyiwa, S. Porumbescu, J. Emer, J. Owens · arXiv in preparation

Read the write-up (PDF) · Tutorial on edge-lang.org

Bellman–Ford with negative-cycle detection

Relaxation as a (min, +) computation, one generation of distances per round. The min appears twice with two jobs: carrying the old distance forward, and reducing competing sources. That distinction later decided where atomics were needed on the GPU.

With T. Odemuyiwa, S. Porumbescu, J. Emer, J. Owens · arXiv in preparation

Read the write-up (PDF) · Tutorial on edge-lang.org

Push-relabel max-flow, as a 23-Einsum cascade

A bulk-synchronous cascade: saturate the source, then each generation finds active vertices, tests admissible edges, pushes and relabels, stopping when no vertex holds excess. Bulk-synchronous execution has no read-after-write, so the active and admissible sets are recomputed after the push. The select-any steps state the algorithm's nondeterminism exactly: a concrete selection order is a mapping choice, not a different algorithm. Deriving the serial cascade from the parallel one adds a single-vertex selector and real branching (push or relabel). That holds for this derivation; whether the general transformation can be formalized is an open question I am working on.

With T. Odemuyiwa

Read the write-up (PDF) · Tutorial on edge-lang.org

edge-lang.org and feedback to the language

I built edge-lang.org, which hosts my tutorials alongside the rest of the EDGE Zoo and lets anyone publish their own cascades, so the collection can grow beyond the algorithms written inside the group. Writing three algorithms that stress the notation in different ways produced concrete feedback, which I passed on to the language's authors.

edge-workbench: verifying and explaining AI-written specs

People will increasingly write EDGE specs with AI, so they need proof the spec is correct and a way to see what it does. edge-workbench checks a tutorial, its cascade and an independent verifier against each other, runs the cascade in EDGE's reference interpreter, and publishes an interactive page that steps through each Einsum and shows the exact tensor values. Live examples: max-flow and Bellman–Ford.

Why I built it. Max-flow was the hardest algorithm I wrote. A vertex with excess 5 cannot push 5 to every neighbour at once, so the cascade needed an explicit selection step. I could hand-check a few graphs but could not know it worked on every graph, and slides were a poor way to present 23 Einsums to my collaborators. So I generated a trace of a sequential implementation, then built a visualizer, an evaluator, oracle verification, and finally walkthrough pages anyone can use.

Exploration: Bellman–Ford in Gunrock

I translated the EDGE Bellman–Ford spec into a Gunrock kernel by hand and profiled it on an NVIDIA V100 with Nsight Compute, recording the decision each step forced. The main finding is a rule a compiler could check: the reduce over sources has no source rank in its output, which is a write conflict on the GPU. Because min is associative and commutative, a lock-free atomic min is a legal realization; an operator without those properties would need explicit ordering. Gunrock's own SSSP updates distances in place, while my kernel keeps current and next-round buffers. These are the same Einsum under two buffering policies, so buffering is an implementation detail and not part of the spec. Code: edge_gunrock_dse_code.

What is next

Other projects

CUDA GEMM from scratch

Six progressive optimizations (coalescing, shared-memory tiling, 1D/2D register blocking, vectorized loads), reaching 10,200 GFLOP/s, 64% of cuBLAS. Each variant profiled with Nsight Compute.

C++, CUDA · Feb 2026

Microarchitecture experiments with gem5

Studied the effect of pipeline width, ROB size and register count on ILP; evaluated cache designs and blocking on matrix multiply; diagnosed false sharing with cycle-level cache simulation.

gem5, C++, Python · ECS 201A, Winter 2025

Journey

Industry taught me to care about reliability, testing and what happens in production. Research let me ask why a system is shaped the way it is. The workbench and the Gunrock work are where those two habits meet.

Mentoring and service

Goals

When I started my MS I did not think I could do research or formulate open-ended problems of my own. Now I want the time a PhD gives to take this further. I am interested in the whole stack: how a high-level specification maps to different hardware and memory systems, and how to keep it correct on the way down. The questions I keep returning to are how to formalize the transformation from sequential to parallel algorithms, how to carry specifications down to lower levels, which parts of a mapping can be checked automatically, and how to make specifications that people, and increasingly AI, can write and still trust. I am open to work beyond EDGE and beyond GPUs.

After the PhD I expect to build compilers and hardware-software tools, in a research lab or in industry; I am keeping that open.

Contact

I am happy to talk about EDGE, graph algorithms on GPUs, or PhD opportunities.