Repository navigation
Home
This page compares the time per step of canoP with its physics in Python, written with pykokkos, to the last canoP with its physics in C++, on an NVIDIA A100.
-
pykokkos: canoP
mainat8c715195(release 0.1.0). -
C++: canoP
a778bf4a.
The cases, the method, the raw times and the way to run the benchmark again are in the README. In short:
- every case is the
blastof the modelonephaseon a periodic uniform mesh, adapted at every step; - each case runs for 50 steps and for n2 steps, n2 chosen so that the difference lasts about 150 s;
- the time per step is (ALL(n2) − ALL(50)) / (n2 − 50), with ALL the time
Kalypsso::ALLof canoP; - the speed is Mcell/s = cells / time per step.
The runs are longer than on CPU (50 and 250 steps there) because of the two outputs, written on GPFS. Their time changes by up to 3.5 s from one run to the next, while 50 steps take about 0.5 s on the GPU.
Ruche gpua100, node ruche-gpu14: NVIDIA A100-SXM4-40GB, one MPI process with 8 OpenMP threads.
- pykokkos: the runs of this repository's campaign, one run per point.
- C++: the same input files converted to its format, minimum of two runs.

| case | steps | C++ ms/step | C++ Mcell/s | pykokkos ms/step | pykokkos Mcell/s | pykokkos / C++ |
|---|---|---|---|---|---|---|
| 2D 2048², blocks 4² | 50-5050 | 30.09 | 139.4 | 28.29 | 148.3 | 1.06 |
| 2D 2048², blocks 16² | 50-15050 | 10.21 | 410.8 | 10.32 | 406.5 | 0.99 |
| 3D 128³, blocks 4³ | 50-8050 | 18.29 | 114.6 | 16.34 | 128.4 | 1.12 |
| 3D 128³, blocks 8³ | 50-15050 | 11.01 | 190.4 | 10.05 | 208.6 | 1.10 |
| 3D 256³, blocks 8³ | 50-2050 | 69.78 | 240.4 | 57.37 | 292.4 | 1.22 |
On the A100, the physics in Python runs as fast as the physics in C++ in 2D, and 10 to 22 % faster in
3D. The benchmark of 2026-11-23 (pykokkos at 16989d10, on the same node) gave the same ratios:
1.06, 1.01, 1.11, 1.09 and 1.21.
Limits: pykokkos has one run per point, so the noise of the outputs may move a ratio by up to about 3 %. The C++ takes the best of two runs, whose spread is 1 % at most. All the runs ran on the same node, at different times, with the clocks of the GPU not locked.
The time per step on one CPU node (40 cores, from bench-pykokkos-cpp-openmp) divided by the time per step on the A100:
| case | C++ | pykokkos |
|---|---|---|
| 2D 2048², blocks 4² | 9.3 | 9.6 |
| 2D 2048², blocks 16² | 13.6 | 13.5 |
| 3D 128³, blocks 4³ | 19.9 | 21.9 |
| 3D 128³, blocks 8³ | 17.0 | 17.6 |
| 3D 256³, blocks 8³ | 20.4 | 22.3 |
The CPU runs used 50 and 250 steps, on other nodes than the GPU runs.