Menu
Sign In Search Podcasts Charts People & Topics Add Podcast API Pricing

Chris Lattner

๐Ÿ‘ค Speaker
See mentions of this person in podcasts
2524 total appearances

Appearances Over Time

Podcast Appearances

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

Auto-tuning is a feature in Mojo.

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

It's not, so very little of what we're doing is actually research.

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

Like many of these ideas have existed in other systems and other places, and so what we're doing is we're pulling together good ideas, remixing them, and making them into hopefully a beautiful system, right?

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

And so auto-tuning, the observation is that

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

Turns out hardware systems algorithms are really complicated.

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

Turns out maybe you don't actually want to know how the hardware works, right?

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

A lot of people don't, right?

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

And so there are lots of really smart hardware people, I know a lot of them, where they know everything about, okay, the cache size is this and the number of registers is that.

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

And if you use this length of vector, it's going to be super efficient because it maps directly onto what it can do.

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

And like,

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

all this kind of stuff, or the GPU has SMs and it has a warp size of whatever, right?

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

All the stuff that goes into these things, or the tile size of a TPU is 128, like these factoids, right?

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

My belief is that most normal people, and I love hardware people also, I'm not trying to offend literally everybody in the internet, but most programmers actually don't want to know this stuff, right?

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

And so if you come at it from the perspective of how do we allow people to build both more abstracted but also more portable code,

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

Because, you know, it could be that the vector length changes or the cache size changes, or it could be that the tile size of your matrix changes or the number, you know, an A100 versus an H100 versus a Volta versus a whatever GPU have different characteristics, right?

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

A lot of the algorithms that you run are actually the same, but the parameters, these magic numbers you have to fill in end up being really fiddly numbers that an expert has to go figure out.

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

And so what autotuning does, it says, okay, well, guess what?

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

There's a lot of compute out there.

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

So instead of having humans go randomly try all the things or do a grid search or go search some complicated multidimensional space, how about we have computers do that?

Lex Fridman Podcast
#381 โ€“ Chris Lattner: Future of Programming and AI

And so what autotuning does is you can say, hey, here's my algorithm.