Supercharged high-resolution ocean simulation with Jax
dionhaefner.github.io
Supercharged high-resolution ocean simulation with Jax
1–10 of 49 posts
Re: Supercharged high-resolution ocean simulation with Jax
#2Re: Supercharged high-resolution ocean simulation with Jax
#3Awesome! One question immediately comes to mind. Any interest in doing this stuff with Julia? You're basically the epitome of their target audience: a scientific computing expert who does HPC with differentiable programs.
Re: Supercharged high-resolution ocean simulation with Jax
#4[0] https://www.linkedin.com/feed/update/activity:68640106214579...
Re: Supercharged high-resolution ocean simulation with Jax
#5Also, would you expect JAX acceleration to work well with other types of discretization, such as spectral methods?
Re: Supercharged high-resolution ocean simulation with Jax
#6Re: Supercharged high-resolution ocean simulation with Jax
#7What made you choose JAX over Julia? I'm interested in this question, because I have been thinking about transitioning to Julia but have always hesitated to make the move, since overall the Python ecosystem still seems way ahead in terms of visualization and toolchain. Also, would you expect JAX acceleration to work well with other types of discretization, such as spectral methods?
> JAX on GPU outperforms everything
I've only skimmed through the blog post, but it feels that the GPU acceleration without a need to write any custom code, was the primary reason to choose JAX.
Re: Supercharged high-resolution ocean simulation with Jax
#8What made you choose JAX over Julia? I'm interested in this question, because I have been thinking about transitioning to Julia but have always hesitated to make the move, since overall the Python ecosystem still seems way ahead in terms of visualization and toolchain. Also, would you expect JAX acceleration to work well with other types of discretization, such as spectral methods?
The magic of JAX is that it keeps all that stuff about as simple as writing numpy code.
Re: Supercharged high-resolution ocean simulation with Jax
#9Awesome! One question immediately comes to mind. Any interest in doing this stuff with Julia? You're basically the epitome of their target audience: a scientific computing expert who does HPC with differentiable programs.
There's an earlier blog post by the same author where they discuss three possible ways of moving away from the Fortran/C status quo towards higher-level models. They mention Julia as one of the routes, but not the one they decided to take: https://dionhaefner.github.io/2021/04/higher-level-geophysic...
For example https://gist.github.com/ChrisRackauckas/62a063f23cccf3a55a4a... shows a pretty simple case where DifferentialEquations.JL is 6x faster at gradient calculations than Jax.
Re: Supercharged high-resolution ocean simulation with Jax
#10> JAX offers more than just a JIT compiler: JAX functions are also differentiable
if the downstream library is completely implemented in JAX (numba) ecosystem. Similar for Julia, except implementing fast code in Julia is natural, doesn't involve debugging 3 compilers (Cpython, Numba, Jax). Many python library is only differentiable because the 100x more effort were put in writing C/C++ backend, binding to python, and writing chain rules for foreign functions.
I would imagine Julia to be a good fit for this direction in the future!