Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

606 Commits

Repository files navigation

18.337/6.7320: Parallel Computing, Scientific Machine Learning, and Modern Agentic Modelling (Spring 2026)

Professor Alan Edelman (and Philip the Corgi), affiliate Professor Chris Rackauckas

MW 2:30 to 4:00 @ 45-230 (before spring break), then switch to 32-123 (after spring break)

TA and Office hours: (To be confirmed)

Canvas will only be used for homework and project (+proposal) submission

Note for 2026: We have a much higher enrollment than we have had in the past. The below will have to be modified if the enrollment remains this high.
Below is what appeared in the 2023 class. We may not be able to get as many computing resources for everyone. Math does not usually have the same resources as Course 6, so we may not have as much TA support as we would hope to have.

Julia:

  • Really nice Julia tutorial for the fall 2022 class Tutorial

  • Julia cheatsheets

  • Julia tutorial by Steven Johnson Fri Feb 6, 2026 Room 34-101 Optional Julia Tutorial: Fri Feb 6 5-7pm Room 34-101

  • Virtually via Zoom. Recording will be posted.

A basic overview of the Julia programming environment for numerical computations that we will use in 18.06 for simple computational exploration. This (Zoom-based) tutorial will cover what Julia is and the basics of interaction, scalar/vector/matrix arithmetic, and plotting — we'll be using it as just a "fancy calculator" and no "real programming" will be required.

If possible, try to install Julia on your laptop beforehand using the instructions at the above link. Failing that, you can run Julia in the cloud (see instructions above).

Modelling (New for 2026)

Scientists and Engineers build physics-based models of the world. As manufacturing resurges in America, engineers are increasingly resorting to model based design. Physical AI is reinventing product design. This includes Scientific AI methods that combine models with data, model autocompletion that provides the missing physics, Agentic AI systems that build physics based models, and compilers and solvers that not only leverage automatic differentiation, but are also redesigned to provide introspection to agents.

Parallel Computing

Take a look at MIT Engaging and see what is there.

Tentative Schedule

#DateDayCommentswho gives live lecture?topic
12/2/2026MondayChrisIntro to SciML, PINNs
22/4/2026WednesdayChrisForward mode automatic differentiation
32/9/2026MondayAlanLooking at Forward Mode in other ways
42/11/2026WednesdayORCDQuiz 1 & MITs Engaging Supercomputing
2/16/2026MondayPresidents' Day
52/17/2026TuesdayMonday ScheduleChrisReverse mode automatic differentiation
62/18/2026WednesdayChrisAdjoint methods
72/23/2026MondayChrisNeural/Universal differential equations
82/25/2026WednesdayChrisDifferential Algebraic Equations
93/2/2026MondayChrisMachine Learning with Conservation Laws
103/4/2026WednesdayChrisMake-up Day
113/9/2026MondayMike Tiller
123/11/2026WednesdayMike Tiller
133/16/2026MondayAlanBig Picture of Scientific Machine Learning
143/18/2026WednesdayAlanIntroduction to HPC
3/23/2026MondaySpring Break
3/25/2026WednesdaySpring Break
153/30/2026MondayAlanParallel Prefix [prefix spring 2026.pptx][prefixspring2026.jl]
164/1/2026WednesdayAlanInto to GPUS [gpus2026.pptx]
174/6/2026MondayAlanOptimizing Serial Code Types in Julia [7_ptypes.jl][html]Threading[handwritten notes][Serial Performance .jl][Loop Fusion Blog]
184/8/2026WednesdayEvelyne RingootProgramming GPUs
194/13/2026MondayAlanMatrix Multiply and Memory Slides
204/15/2026WednesdayAlan (and Julian remotely)Dagger 1 Slides, Dagger 2 Slides
4/20/2026MondayPatriots Day
214/22/2026WednesdayTamiko Thiel
224/27/2026MondayClassFinal Project Presentations
234/29/2026WednesdayClassFinal Project Presentations
245/4/2026MondayClassFinal Project Presentations
255/6/2026WednesdayClassFinal Project Presentations
265/11/2026MondayClassFinal Project Presentations

Announcement:

There will be homeworks, followed by the final project. Everyone needs to present their work and submit a project report.

1-page Final Project proposal due : just before Spring Break

Final Project presentations : we may have some done by video and some in class

Final Project reports due: May 11

Grading:

25% problem sets (approximately every two weeks or fewer), 25% quizzes (planned for every second wednesday probably a total of five or six in number), 10% for the final project proposal, and 40% for the final project. Problem sets and final projects will be submitted electronically.

HW

#HWDue Date
1PINNs2/11/2026
2Performance etcThurs 3/5/2026
3Project Proposal & Adjoint Eqn Friday 3/20/2026
4Threads & GPU4/24/2026

Lecture Schedule (Old: from 2023)

#DayDateTopicSciML lectureMaterials
1M2/6Intro to Julia. My Two Favorite Notebooks.[Julia is fast], [AutoDiff], [autodiff video],
2W2/8Matrix Calculus I and The Parallel DreamSee [IAP 2023 Class on Matrix Calculus],[handwritten notes],[The Parallel Dream]
3M2/13Matrix Calculus II[handwritten notes],[Corgi in the Washing Machine],[2x2 Matrix Jacobians]
4W2/15Serial Performance2[handwritten notes], [Serial Performance .jl file], [Loop Fusion Blog ]
5T2/21Intro to PINNs and Automatic differentiation I : Forward mode AD3 and 8ode and Pinns,intro to pinn handwritten notes,autodiff handwritten notes
6W2/22Automatic differentiation II : Reverse mode AD10pinn.jl, reverse mode ad demo,handwritten notes
7M2/27Dynamical Systems & Serial Performance on Iterations4Lorenz many ways, Dynamical Systems, handwriten notes
8W3/1HPC & Threading5 and 6pi.jl, threads.jl,HPC Slides
9M3/6ParallelismParallelism in Julia Slides,reduce/prefix notebook
10W3/8Prefix (and more)ppt slides, reduce/prefix notebook,ThreadedScans.jl,cuda blog
11M3/13Adjoint Method Example10Handwritten Notes
12W3/15Guest Lecture - Chris Rackauckas
13M3/21Vectors, Operators and AdjointsHandwritten Notes
14W3/23Adjoints of Linear, Nonlinear, Ode11Handwritten Notes, 18.335 adjoint notes (Johnson)
Spring Break
15M4/3Guest Lecture, Billy MosesEnzyme AD
16W4/5Guest Lecture, Keaton BurnsDedalus PDE Solver
17M4/10Adjoints of ODEHandwritten Notes
18W4/12Partitioning
M4/17Patriots' Day
19W4/19Fast Multipole and Parallel PrefixUnfinished Draft
20M4/24
21W4/26Project Presentation I
22M5/1Project Presentation II
23W5/3Project Presentation III
24M5/8Project Presentation IV
25W5/10Project Presentation V
M5/15Class Cancelled

|8|W|3/1| GPU Parallelism I |7| [video 1],[video2] |9|M|3/6| GPU Paralellism II | | [video], [Eig&SVD derivatives notebooks], [2022 IAP Class Matrix Calculus] |10|W|3/8| MPI | | Slides, [video, Lauren Milichen],[Performance Metrics] see p317,15.6 |11|M|3/13| Differential Equations I | 9| |12|W|3/15| Differential Equations II |10 | |13|M|3/20| Neural ODE |11 | |14|W|3/22| |13 | | | | | Spring Break | |15|M|4/3| | | GPU SlidesPrefix Materials |16|W|4/5| Convolutions and PDEs | 14 | |17|M|4/10| Chris R on ode adjoints, PRAM Model |11 | [video]| |18|W|4/12| Linear and Nonlinear System Adjoints | 11 | [video]| | |M|4/17| Patriots' Day |19|W|4/19| Lagrange Multipliers, Spectral Partitioning || Partitioning Slides| | |20|M|4/24| |15| [video],notes on adjoint| |21|W|4/26| Project Presentation I | |22|M|5/1| Project Presentation II | Materials |23|W|5/3| Project Presentation III | 16 | [video] |24|M|5/8| Project Presentation IV |
|25|W|5/10| Project Presentation V | |26|M|5/15| Project Presentation VI|

Lecture Summaries and Handouts

Class Videos

Lecture 1: Syllabus, Introduction to Performance, Introduction to Automatic Differentiation

Setting the stage for this course which will involve high performance computing, mathematics, and scientific machine learning, we looked at two introductory notebooks. The first [Julia is fast]](https://github.com/mitmath/18337/blob/master/lecture1/Julia%20is%20fast.ipynb) primarily reveals just how much performance languages like Python can leave on the table. Many people don't compare languages, so they are unlikely to be aware. The second [AutoDiff]](https://github.com/mitmath/18337/blob/master/lecture1/AutoDiff.ipynb) reveals the "magic" of forward mode autodifferentiation showing how a compiler can "rewrite" a program through the use of software overloading and still maintain performance. This is a whole new way to see calculus, not the way you learned it in a first year class, and not finite differences either.

Lecture 2: The Parallel Dream and Intro to Matrix Calculus

We gave an example [The Parallel Dream]](https://github.com/mitmath/18337/blob/master/lecture1/the_dream.ipynb)

Lecture and Notes

Homeworks

HW1 will be due Thursday Feb 16. This is really just a getting started homework.

Hw1

Final Project

For the second half of the class students will work on the final project. A one-page final project proposal must be sumbitted by March 24 Friday, through canvas.

Last three weeks (tentative) will be student presentations.

Possible Project Topics

Here's a list of current projects of interest to the julialab

One possibility is to review an interesting algorithm not covered in the course and develop a high performance implementation. Some examples include:

  • High performance PDE solvers for specific PDEs like Navier-Stokes
  • Common high performance algorithms (Ex: Jacobian-Free Newton Krylov for PDEs)
  • Recreation of a parameter sensitivity study in a field like biology, pharmacology, or climate science
  • Augmented Neural Ordinary Differential Equations
  • Neural Jump Stochastic Differential Equations
  • Parallelized stencil calculations
  • Distributed linear algebra kernels
  • Parallel implementations of statistical libraries, such as survival statistics or linear models for big data. Here's one example parallel library) and a second example.
  • Parallelization of data analysis methods
  • Type-generic implementations of sparse linear algebra methods
  • A fast regex library
  • Math library primitives (exp, log, etc.)

Another possibility is to work on state-of-the-art performance engineering. This would be implementing a new auto-parallelization or performance enhancement. For these types of projects, implementing an application for benchmarking is not required, and one can instead benchmark the effects on already existing code to find cases where it is beneficial (or leads to performance regressions). Possible examples are:

Additionally, Scientific Machine Learning is a wide open field with lots of low hanging fruit. Instead of a review, a suitable research project can be used for chosen for the final project. Possibilities include:

  • Acceleration methods for adjoints of differential equations
  • Improved methods for Physics-Informed Neural Networks
  • New applications of neural differential equations
  • Parallelized implicit ODE solvers for large ODE systems
  • GPU-parallelized ODE/SDE solvers for small systems

About

18.337 - Parallel Computing and Scientific Machine Learning

Resources

Stars

278 stars

Watchers

5 watching

Forks

Releases

Packages

Contributors

Languages