CP2K Artificial Benchmark
CP2K Artificial Benchmark
The first code sample given for LIBXSMM was a performance reproducer exercising the same set of kernels usually generated for CP2K’s SMM library. The code sample attempted to model the way “matrix stacks” are processed in CP2K, however there are two different code paths in CP2K: (1) the “main” code path used when processing stacks on the host-side, and (2) a code path targeting offload devices. Beside of the host-sided parallelization via MPI (and perhaps OpenMP), the secondly mentioned code path relies on an additional level of parallelization (which is obviously necessary to drive a potentially highly parallel offload device). Also, the additional level of parallelism is not exactly “nested” in the sense that it participates on sharing the same resources as the host-side. In fact, this “artificial benchmark” (cp2k code sample) is modeling a code path as utilized in the secondly mentioned case (offload device).