Jean-Baptiste Keck – Personal website

Jean-Baptiste Keck

PhD in Applied Mathematics

Co-founder & CTO of RayMapr

Projects

Open source libraries

Libraries I develop and maintain on my github account, mostly for GPUs. They are designed to work together: symbolic code generation (symox → kernox → the twin libraries deblais and remblais) on one side, building blocks for runtime compiled kernels (cusvna, vusvna, cupmb, autodiff and Eigen) on the other.

Jean-Baptiste Keck's avatar

symox: fast symbolic mathematics in Rust

A computer algebra system written in Rust and designed as a drop-in replacement for SymPy: same Python API and semantics, one to three orders of magnitude faster on the included benchmarks. Symbolic expressions compile to optimized kernels for CUDA, SYCL, Slang, PyTorch and JAX. It is the symbolic engine behind kernox, and through it remblais.

Jean-Baptiste Keck's avatar

kernox: fused symbolic GPU reductions

Pairwise reductions on GPUs (Gaussian kernel sums, nearest neighbours, log-sum-exp, ...) without ever building the M×N matrix. Formulas are written with symbolic variables and turned into a single fused kernel for NVIDIA (CUDA), AMD (HIP) and Intel (SYCL) GPUs, derivatives included. A successor to PyKeOps, built on symox and working with PyTorch tensors. It is the backend of remblais.

Jean-Baptiste Keck's avatar

deblais: exact optimal transport between point clouds on CPUs

Exact (unregularized) optimal transport and assignment between point clouds, with costs |x−y|p: the optimal sparse plan, its exact cost and the Kantorovich potentials, which certify optimality. The solver is a network simplex that never stores the cost matrix, started by a multiscale scheme and parallel sweeps of a domain decomposition, with forward and reverse auctions for assignment problems and a dedicated solver for images and volumes. Memory is linear and time almost linear in the number of points, which brings problems of millions of points within reach of a workstation.

Header-only C++17 with no dependency, NumPy and PyTorch bindings (pip install deblais) with a cost differentiable with respect to the points and the masses, and an automatic mode that picks the algorithm and its parameters. A browser demo moves ten million grains from the streets of Paris to those of London (full screen, film).

deblais and remblais are twin libraries: deblais computes the exact optimal plan on CPUs, remblais smooth entropic losses to minimize on GPUs. Take deblais for a plan, an assignment or a reference value, remblais for a loss to minimize. The names come from Monge (1781), who asked how to move a pile of earth, the déblais, into a hole, the remblais, at the lowest cost.

Jean-Baptiste Keck's avatar

remblais: geometric losses and optimal transport on GPUs

Sinkhorn divergences (entropic optimal transport), kernel norms (MMD) and Hausdorff divergences between point clouds, images and volumes, on NVIDIA, AMD and Intel GPUs. A faster drop-in replacement for GeomLoss (import remblais as geomloss), built on kernox instead of PyKeOps, and thus on symox.

remblais is the twin library of deblais, which computes exact optimal transport plans on CPUs.

Jean-Baptiste Keck's avatar

cusvna: rigorous interval and affine arithmetic in CUDA

CUDA Self-Validated Numerical Analysis: a header-only C++17 library for computations with guaranteed error bounds, floating point rounding errors included. Affine forms live in registers and work in device code compiled with nvcc or at runtime with NVRTC. It has a Vulkan port, vusvna, provides the block predicates that let cupmb skip empty space, and is compatible with the CUDA ports of autodiff and Eigen.

Jean-Baptiste Keck's avatar

vusvna: affine arithmetic in Vulkan shaders

Vulkan Self-Validated Numerical Analysis: a Slang module bringing affine arithmetic with guaranteed error bounds to any shader stage (compute, ray tracing intersection shaders, fragment...), for instance to ray trace implicit surfaces robustly. It is the partial Vulkan port of cusvna.

Jean-Baptiste Keck's avatar

cupmb: GPU isosurface extraction for Python

Cuda Parallel Marching Blocks: extraction of the zero level set of a scalar field on the GPU, with root finding in 1D, marching squares in 2D and marching cubes in 3D, producing indexed meshes at real time rates with CuPy or PyCUDA. The scalar field is a CUDA device function compiled at runtime with NVRTC, which can rely on cusvna to discard empty blocks, and on autodiff and Eigen inside the kernels.

Jean-Baptiste Keck's avatar

autodiff and Eigen in CUDA kernels

Two forks that make well known header-only C++ libraries usable in CUDA device code, including code compiled at runtime with NVRTC. autodiff is based on autodiff v1.1.2 and brings forward (dual, real) and reverse (var) mode automatic differentiation to the GPU. eigen-nvrtc is Eigen 5.0.1 patched so that #include <Eigen/Dense> compiles under NVRTC. Both work together, and alongside cusvna and cupmb.

Featured project

Jean-Baptiste Keck's avatar

Scattered data interpolation using wavelet trees

Interpolating wavelets and their application to incremental signal reconstruction from scattered data. Learn how to build a wavelet tree such that approximation error locally only depends on a local sample density.

Link to the full article.

All projects

Jean-Baptiste Keck's avatar Gauthier Zirnhelt's avatar

Numerical simulation of cardiac electrophysiology on the GPU

Real time 2D numerical simulation of transmembrane currents in cardiac cells using OpenCL and OpenGL interoperability. The 2D domain is cut into subdomains which make it possible to use multiple GPUs to perform the simulation.

Jean-Baptiste Keck's avatar

Efficient reconstruction of volumic data from 2D localized ultrasonic images

Conventional 3D ultrasound data reconstruction algorithms have low computational complexity but the huge amount of data generated makes it difficult to compute results within reasonable time on classical computers. In this project we investigate the possibilities of regenerating a 3D isotropic volume from thousands of localized 2D ultrasound images with the help of GPUs.

Jean-Baptiste Keck's avatar Alexandre Ribard's avatar

Interpolation of sparse atmospheric pollution data

Interpolation of sparse atmospheric pollution data (PM10 particle concentrations) in the region of Grenoble and embedding into google earth. The overlay is animated so that we can see daily evolution of particle pollution around Grenoble and Lyon.

Link to the github project (external link).

Jean-Baptiste Keck's avatar

Visualisation of the trajectory of a bended needle in a 3D CT scan

The Imactis CT-Navigation system consists in a sensor that is inserted into a needle holder which allows to know in real time the position and orientation of the needle. The radiologist moves the needle holder directly on the patient’s skin and visualizes in real time the anticipated trajectory of the needle. So far, the system does only allow to display rectilinear trajectories, 2D slices reconstructed from preoperatory Computed Topography (CT) images. However, the real needle bends under the pressure of various tissues and the radiologist. Needle bending implies that the extracted slices are not flat slices anymore.

Jean-Baptiste Keck's avatar Jocelyn Meyron#x27;s avatar Gauthier Zirnhelt's avatar

Procedural submarine scene generation and rendering

Submarine scene demo in OpenGL and CUDA, featuring, animated bubbles as a CUDA particle system with procedural sprites, animated seeweeds as a CUDA mass-spring system, animated water, and finally real time procedural terrain and cave generation (shader based marching cube and procedural marble texture). This project was the opportunity to explore OpenGL and CUDA interoperability.

Link to the github project (external link).