Research Article

A Computational Realization of a Semi-Lagrangian Method for Solving the Advection Equation

Table 2

Execution time of all versions of program.

VersionNumber of mesh points in one space dimension (number of the time steps)
(400) (800) (1600) (3200) (6400)

Sequential, −O020.16159.401268.4610107.80*
Sequential, −O2 9.9978.97626.724980.6139598.90
Sequential, −O39.8778.08619.804936.2539202.91
OpenMP(12), −O0, HT Off1.9812.52103.45819.066519.87
OpenMP(12), −O2, HT Off0.927.1356.10444.153535.53
OpenMP(24), −O2, HT On0.916.1749.93388.203080.91
CUDA version 12.5513.0674.02****
CUDA version 23.208.2742.60308.82**