25–27 nov. 2024
Fuseau horaire Europe/Paris

This free online training will allow you to acquire or refine the skills needed to write efficient numerical computations for CPU platforms using the Rust programming language. Using a combination of theoretical explations and practical work, it will take place during three afternoons:

  • Monday, November 25th - 1pm: Introduction to Rust for numerical computing, practical work on implementing and optimizing simple numerical computations
  • Tuesday, November 26th - 1pm: End of the work on simple computations, followed by an introduction to the Gray-Scott reaction-diffusion model, which we will use as an example of a more complex computation for the remainder of the course.
  • Wednesday, November 27th - 1pm: Practical work covering more advanced Rust performance optimization techniques, applied to the Gray-Scott simulation introduced on day 2.

Why Rust?

The explosive growth of Python in numerical computing illustrates that scientific software developers are increasingly unwilling to put up with C++'s poor ergonomics, even if it comes at the expense of losing C++'s benefits to large-scale software maintainability and runtime performance. But what if we could have good ergonomics, maintainability and performance at the same time?

This is the value proposition of Rust, an emerging programming language that builds on many of the core design choices of C++ (powerful type system, tight control on program execution...), but has sacrificed some backwards compatibility with C and C++ where it allowed for major improvements in developer ergonomics.

As a result, Rust makes it a lot easier than both C++ and Python to write maintainable programs that are free of type/memory/thread-safety errors, robust in the face of runtime errors, and ultimately produce correct results. All the while enabling the levels of runtime performance that C++ developers are accustomed to, given similar or easier optimization efforts.

Course contents

In this online training, you will learn how to write efficient numerical computations for CPU platforms in Rust, through a combination of theoretical explanations and practical work.

We will first get to know Rust by manually implementing a few simple computations (squaring numbers, dot product...), gradually introducing needed language features as we go. Then we'll see how the underlying hardware can be used more efficiently through a combination of SIMD processing, instruction-level parallelism, and multi-threading.

Armed with this foundational knowledge, we will then scale the problem up to a more sophisticated numerical computation, the Gray-Scott reaction-diffusion model, which will introduce along the way. This will allow us to cover some of the more advanced performance optimization techniques that apply at this scale.

Target audience

No prior knowledge of the Rust programming language or the Gray-Scott model (or computational chemistry in general) is required to follow this course. They will all be introduced during the lectures.

On the other hand, it is recommended to have at least basic knowledge of the following topics:

  • C language concepts and syntax (number types and arithmetic, string literals, stack vs heap)
  • Numerical computing (floating-point numbers, single- and multi-dimensional arrays)
  • Linear algebra (vectors and matrices, dot product and matrix multiplication)
  • Differential equations, numerical resolution via Euler and finite difference methods
Commence le
Finit le
Europe/Paris

Collaboration Team organizing this event

Trainer

Hadrien Grasland is a software developer at IJCLab, a French laboratory attached to CNRS and the Paris-Saclay and Paris-Cité universities. More info about him can be found on this dedicated page.

CC-FR (NCC France)

The NCC France (called CC-FR), dedicated to HPC, HPDA, AI and Quantum computing technologies, brings together the community of technology providers and users from academia, research institutions, public administration and industry. CC-FR federates the HPC, HPDA, AI and Quantum computing ecosystem and supports industry on the use of intensive computing, high-performance data analysis and artificial intelligence.

CC-FR offers a wide portfolio of services to help you to set up and implement your HPC, HPDA , AI and Quantum enabled projects.

NCC Slovakia

Clients of the Slovak National Competence Centre will gain access to information obtained from mapping providers and consumers of HPC solutions in Slovakia, they will be provided access to the computing resources and software tools of the HPC lab. The team of experts of NCC will provide consultations on the possibilities of HPC technologies deployment, or will design and assist in the implementation of pilot- or migration of existing solutions. We can also help to build partnerships between the academic sphere, the public and private sectors, or connect our clients with foreign competence centers.

EuroCC

NCC Slovakia and NCC France are part of the European network of 33 competence centers, called EuroCC. The aim of the EuroCC is to bridge the existing HPC skill gaps while promoting cooperation and the implementation of best practices across Europe. European countries are currently taking part in the initiative and pooling their resources with the EU and private partners to enable the EU to become a world leader in supercomputing.