Chapter 58: Pushing the Schedule Like a Madman
Reborn in 2010: The AI in My Brain Is Too Powerful! by yangxxxxxx
The pleasant Los Angeles trip came to an end, and Chen Yiran didn't wait for Monday — he started working over the weekend.
He had already assembled all the material on the ISPD 2006 placement benchmark suite: the netlist files for several test cases, the LEF-format descriptions of the standard cell library, and the official wirelength and density constraint documentation.
| I understand the input formats now. LEF describes the physical dimensions and pin locations of standard cells; the netlist gives the connectivity between cells. HPWL — half-perimeter wirelength model. The width plus the height of each net's bounding box is the approximation of its wirelength. |
|---|
"You're saying you can just design the parser directly?"
| I can, but that's only step one. The benchmark format itself isn't complicated. What's complicated is how to feed the parsed data into DeepFlow. The editor's AST is a one-dimensional tree structure; placement is two-dimensional space plus three-dimensional connectivity. |
|---|
| The core modification: the trigger condition for incremental updates changes from text edits to spatial position changes. When a cell moves, the affected parties are no longer sibling nodes on a syntax tree, but the cells spatially adjacent to it and the cells connected to it in the netlist. |
| We need an adapter whose job is to take the coordinate deltas produced every time the placement engine moves a cell, convert them into a delta description DeepFlow can understand, and then feed the gradients DeepFlow computes back into the placement engine. |
Chen Yiran started sketching diagrams in his notebook while Molly analyzed and made him revise as they went.
Shouldering that long-absent low-grade fever feeling, he pushed through two solid days.
The final output was a 13-page design document covering: the benchmark parser architecture, the interface definitions for the DeepFlow adaptation layer, and the data flow contract between the placement engine and the GPU training cluster. Input and output formats, data structures, and call ordering for every section were all spelled out.
Monday morning, Chen Yiran printed the design document and handed a copy to everyone. Katherine wanted one too, just to join in the fun, but Chen turned her down on the grounds that it would waste paper.
David Kao read for five minutes, then set the document down and looked at Chen Yiran.
"Boss, you really are the guy whose first project sold for two hundred million."
David Kao stood up and walked to the whiteboard. He redrew the architecture diagram from Chen's document, then stepped back a couple of paces and studied it for a while.
"This adaptation layer design is right. Changing the trigger condition for incremental updates from the AST's tree structure to a hybrid spatial-plus-connectivity index — that's the most fundamental difference between placement and a code editor."
When Zhou Tianyou saw the data flow contract between the GPU training cluster and the placement engine, he said he had just gotten the CUDA environment and MPI working across all three R710s over the weekend — he'd assumed it would be another week or two before any of it was usable, and here the architecture document already had the interfaces defined.
Everyone else took a piece. Zhang Minghui and Liu Yi took the benchmark parser; Sanjay and Wang Xue took LEF and standard cell library data loading; Amit and Lin Zhiwei started translating ISPD's physical constraints into a format DeepFlow could handle.
The work-assignment whiteboard filled up. Chen Yiran glanced at it and decided there was nothing left for him to do.
"Starting tomorrow I won't be coming in. You guys run with it. Ping me on MSN if there's a problem."
David Kao gave him a look. "So you're going full work-from-home already, Boss?"
"I'm more efficient at home."
David Kao bought that, being the most experienced person in the company.
In fact, he'd been a little worried these past few days. After all, Chen Yiran had taken everyone out on a trip on the company's second day of operation. That kind of style made employees very happy, but from a schedule standpoint it did nothing at all.
Worse, on opening day, although Chen had assigned roles and the overall approach was reasonable enough, he hadn't given even a rough timeline.
David Kao had done the math himself, assuming things went smoothly.
Team shakedown plus toolchain setup: one to two weeks, before they could compile and successfully run the ISPD 2006 benchmark.
Adapting DeepFlow to placement: another two to three months, before the incremental computation engine could handle 2D spatial data.
The first benchmark result would land in March or April, and then it would still have to be compared against preliminary data from traditional methods.
Getting an RL training framework running end to end: at least six months out.
And roughly a year in, the company could produce a usable commercial prototype — a stable, comparable, demonstrable engine.
And that was the optimistic version. Any random problem along the way could stall things for a long time. Without a detailed project timeline, the whole team could easily descend into a bit of chaos.
Chen Yiran hadn't mentioned any of this on opening day, and David Kao got the sense that he simply had no concept of it.
Which was normal enough, when you thought about it. Chen Yiran had been an independent developer before; in terms of overall project management he had essentially zero experience.
David Kao had figured that once Chen noticed the problem, he'd probably propose gradually promoting someone to serve as overall project manager.
He could do that job himself, but he didn't really want to. He was getting older and didn't want to work that hard.
Chen Yiran didn't look like the diligent type either, and looking at the team as it stood, only Raj seemed like a decent fit.
And then, in two days, Chen Yiran showed David Kao what genius actually looked like.
Almost single-handedly, he had cleared away every obstacle within the visible horizon and designed everything that needed designing.
A person like that — fine, let him not come to the office. A little remote direction here and there was enough to push the project forward at insane speed.
Over the next few days, Chen Yiran basically slept until he woke up naturally, walked Pidan, and then spent the day watching shows while fielding questions from the team online.
There were plenty of questions, but most of them got solved once people chewed on them for a while. The ones that genuinely needed him were all things Molly could spot at a glance.
Lin Zhiwei ran into a format version problem while parsing the LEF files. The ISPD 2006 data was still in the old LEF 5.6 format, and the parser he'd written to 5.7 threw an error when it hit the OBS section. Molly took one look and knew the LAYER nesting inside the OBS section had changed between 5.6 and 5.7, and patched in backward compatibility.
Over on Zhang Minghui's side, memory blew up when running the large test cases. Out of habit he'd read the entire netlist into memory before building the data structures, and bigblue4's two million cells swallowed 16 gigs in one gulp.
Chen Yiran told him to switch to streaming parsing — build the graph as you read, and skip the intermediate full copy. Zhang Minghui had come from EA, where game engine resource loading is all streaming, so this ought to be second nature to him. Sure enough, the refactor was done the next day and memory usage was cut in half.
Amit's problem was trickier: the fixed-position constraints on macro cells and the density constraints on standard cells conflicted within the same region.
What was needed was a constraint resolution layer — macros take priority, and standard cell constraints only apply in the space macros don't occupy. Molly worked out the logic, wrote a few lines, and sent them over. Amit added the layer and all the constraints passed, after which he sent back a whole barrage of flattery.
Beyond that, the team ran into no serious trouble. It's fair to say that under Molly's one-on-one spoon-feeding, the company's shakedown period went extremely fast — in roughly a week they completed what David Kao had estimated would take more than half a month.
Friday afternoon, Chen Yiran drove into the office.
David Kao ran the first integration test at a terminal. The log scrolled across the screen for about thirty seconds, and the last line read: ISPD 2006 adaptec1 loaded and validated.
A scattering of applause went around the office.
Chen Yiran walked over to the whiteboard. Monday's architecture diagram was still up there, now surrounded by a dense thicket of arrows and annotations that everyone had added over the week.
"Next week we run the first placement. adaptec1, two hundred thousand cells. I don't care how good the wirelength is — I just want the whole flow to run end to end."
Lin Zhiwei leaned back in his chair and thought about it. "For the first run, I'd suggest starting with a baseline from the simplest random initialization. No AI training at all — just place the cells randomly and let DeepFlow compute the wirelength. Validate the data across the whole flow first, from parsing to engine to wirelength evaluation, and make sure every step's data is correct. Once the baseline checks out, then we bring in RL."
David Kao nodded. "Agreed. And the baseline is useful in itself. You can run simulated annealing on adaptec1 at the same time, under identical benchmark conditions. Once RL training is up, those two baselines become our comparison anchors."
Zhou Tianyou, still holding half a coil of network cable, said, "There's a problem on the training cluster side. The R710s are CPU-only, no GPUs. If placement RL training runs on pure CPU, iteration speed on two hundred thousand cells is going to be very slow. DeepFlow's incremental computation engine can drastically cut the compute per iteration, but the massive parallel exploration RL needs still requires GPU acceleration."
Amit asked, "Didn't you say you got all three R710s working?"
"They work, but the R710 is a server-class Xeon with no GPU cards installed. Running deep learning training on pure CPU gives you maybe one-tenth the efficiency of a GPU."
David Kao turned to Chen Yiran. "Run something small on CPU this week, and consider a GPU expansion once the benchmark is passing end to end?"
Chen Yiran checked Molly's read on it and replied, "Let's first see the per-iteration time for adaptec1 on pure CPU. DeepFlow's incremental updates may be a lot cheaper on compute than you think. If we can run tens of thousands of iterations overnight, that's plenty for a first-version prototype at two hundred thousand cells. We'll add GPUs when we move to large-scale training."
Raj said, a little helplessly, "Sooner rather than later, please. Right now I feel like all I can do is pitch in here and there."
Amit nodded. "Next week I can finish translating the constraints for all eight benchmark cases. This week I only got adaptec1 done."
"How long for all eight?"
"Two weeks. The bigger ones later on are more complex — the bigblue series has extra density constraints at the macro corners."
"Concentrate on getting adaptec1 through the full flow first. We'll fill in the other benchmarks later."
The group discussed for another round, and the whiteboard gained another pile of arrows and TODOs.
That's how Silicon Valley is, especially at a startup — the stage where everyone is fired up. At the peak of the excitement, a couple of the single guys even proposed just not going home tonight and crashing at the office.
Chen Yiran beat a hasty retreat. It was Friday, and he still had to get home for a video call with his parents. They should be finalizing the house back in China this week.
「