High performance optimizations for nuclear physics code MFDn on KNL

5Citations
Citations of this article
4Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Initial optimization strategies and results on MFDn, a largescale nuclear physics application code, running on a single KNL node are presented. This code consists of the construction of a very large sparse real symmetric matrix and computing a few lowest eigenvalues and eigenvectors of this matrix through iterative methods. Challenges addressed include effectively utilizing MCDRAM with representative input data for production runs on 5,000 KNL nodes that require over 80GB of memory per node, using OpenMP 4 to parallelize functions in the construction phase of the sparse matrices, and vectorizing those functions in spite of while-loops, conditionals, and lookup tables with indirect indexing. Moreover, hybrid MPI/OpenMP is employed not only to maximize the total problem size that can be solved per node, but also to eventually minimize parallel scaling overhead through the best scaling combination of MPI ranks per node with OpenMP threads. We describe a vectorized version of a popcount operation to avoid serialization on intrinsic popcnt which only operates on scalar registers. Additionally we leverage SSE 4.2 string comparison instructions to determine nonzero matrix elements. By utilizing MCDRAM, we achieve excellent Sparse Matrix–Matrix multiplication performance; in particular, using blocks of 8 vectors lead to a speedup of 6.4× on KNL and 2.9× on Haswell compared to the performance of repeated SpMV’s. This optimization was essential in achieving a 1.6× improvement on KNL over Haswell.

Cite

CITATION STYLE

APA

Cook, B., Maris, P., Shao, M., Wichmann, N., Wagner, M., O’Neill, J., … Bansal, G. (2016). High performance optimizations for nuclear physics code MFDn on KNL. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 9945 LNCS, pp. 366–377). Springer Verlag. https://doi.org/10.1007/978-3-319-46079-6_26

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free