Recent Trends in Parallel Computing

Empirical Analysis of Cache-Efficient In-place Matrix Transposition on Multicore Processors

  1. Riaz Ahmed ✉
  2. Lalitsen Sharma

Abstract

Performance and scalability of cache-efficient in-place matrix transposition algorithms has been experimentally evaluated in this paper. Cache-efficient in-place matrix transposition algorithms namely cache-aware and cache-oblivious are analyzed on multicore machines for performance and scalability. We propose low-level optimization for cache-efficient in-place matrix transposition and find the best configuration for them. The optimization of algorithms has been made by using efficient iterative kernel. The best tile size for cache-aware and best recursive threshold for cache-oblivious algorithms has been experimentally identified. The performance in terms of transposition rate has been evaluated on quad-core and dual-core machines. The performance bottlenecks are identified by evaluating the cache misses of algorithms. The results are also compared with the naive method of matrix transposition. Experimental results show that performance of cache-efficient matrix transposition algorithms remained better than naive algorithm in all cases of matrix sizes and different number of threads. It is also observed that mean performance of cache-oblivious algorithm remained best among all implementations. The overall finding is that cache-aware and cache-oblivious algorithms are efficient on multicore processors as their performance and scalability remained best in our experiments..Keywords: Cache-aware, cache-oblivious, matrix transposition, multicore, scalabilityCite this ArticleRiaz Ahmed, Lalitsen Sharma. Empirical Analysis of Cache-Efficient In-place Matrix Transposition on Multicore Processors. Recent Trends in Parallel Computing. 2019; 6(2): 1–15p.

References (20)

  1. Walker DW. Morton Ordering of 2D Arrays for Efficient Access to Hierarchical Memory. Int J High Perform Comput Appl. 2018; 32(1): 189–203p.
  2. Frigo M , Leiserson CE, Prokop H, et al . Cache-Oblivious Algorithms. In: Proceedings of 40th IEEE Symposium on Foundations of Computer Science . 1999; 285–298p.
  3. Frigo M, Leiserson CE, Prokop H, et al. Cache-Oblivious Algorit hms. ACM Trans Algorithms. 2012; 8(1): 1–22p.
  4. Moore GE. Cramming More Components onto Integrated Circ uits. Electronics . 1965; 38(1): 114–177p.
  5. Dennard RH, Gaensslen FH , Rideout VL, et al . Design of Ion-Implanted MOSFET's with Very Small Physical Dimensions. IEEE J Solid-State Circuits. 1974; 9(5): 256–268p.
  6. Arge L, Goodrich MT, Nelson M, Sitchinava N. Fundamental Parallel Algorithms for Private-Cache Chip Multiprocessors. Proceedings of the 20th Annual Symposium on Parallelism in Recent Trends in Parallel Computing Volume 6, Issue 2 ISSN: 2393-8749 (Online) RTPC (2019) 1-15 © STM Journals 2019. All Rights Reserved Page 15 Algorithms and Architectures (SPAA ). 2008; 197–206p.
  7. Gustavson FG, Wirszcz T. In -Place Transposition of Rectangular Matrices. In: Kagstrom B, Elmroth E, Dongarra J, et al ., editor s. Applied Parallel Computing, State of the Art in Scientific Computing, Lecture Notes in Computer Science, Vol. 4699. Berlin, Heidelberg: Springer; 2007; 560–569p.
  8. Tretyakov AA, Tyrtyshnikov EE. Optimal In-Place Trans position of Rectangular Matrices. J Complex. 2009; 25(4): 377– 384p.
  9. Karlsson L. Blocked In -Place Transposition with Application to Storage Format Conversion. Department of Computing Science Umea University and HPC2N, S -901 87 Umea, Sweden . 2009; 1–29p. Accessed 25 May 2018.
  10. Gustavson F, Karlsson L, Kagstrom B. Parallel and Cache -Efficient In -Place Matrix Storage Format Conversion. ACM Trans Math Softw. 2012; 38(3): 1–32p.
  11. Gustavson FG, Walker DW. Algorithms for In -Place Matrix Transposition. In: Wyrzykowski R, Dongarra J, Karczewski K, et al ., editors. Parallel Processing and Applied Mathematics; Lecture Notes in Computer Science (LNCS), Vol. 8385. Berlin, Heidelberg : Springer; 2014; 105–117p.
  12. Catanzaro B, Keller A, Garland M. A Decomposition for In-Place Matrix Transposition. Proceedings of the 19th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming (PPoPP). 2014; 193–206p.
  13. Sung IJ, Gomez-Luna J, Gonzalez-Linares JM, et al . In -Place Trans position of Rectangular Ma trices on Accelerators. ACM SIGPLAN Notices . 2014: 49(8): 207–218p.
  14. Chatterjee S, Sen S. Cache -Efficient Matrix Trans position. Proceedings 6th International Symposium on High - Performance Computer Architecture. HPCA-6 (Cat. No.PR00 550), Toulouse, France. 2000; 195–205p.
  15. Tsifakis D, Rendell AP, Strazdins PE. Cache Oblivious Matrix Transposition: Simulation and Experiment. In: Bubak M, van Albada GD, Sloot PMA, et al. , editors. Computational Science , ICCS. Lecture Notes in Computer Science, Vol. 3037. Berlin, Heidelberg : Springer; 2004; 17–25p.
  16. Yotov K, Roeder T, Pingali K , et al. An Experimental Comparison of Cache- Oblivious and Cache-Conscious Programs. Proceedings of the 19th Annual ACM Symposium on Parallel Algorithms and Architectures (SPAA). 2007; 93–104p.
  17. Vladimirov A. Multithreaded Transposition of Square Matrices with Common Code for Intel Xeon Processors and Intel Xeon Phi Coprocessors : Colfax Research. 2013; 19p. http://faculty.kfupm.edu.sa/COE/mayez/xe on-phi/Xeon-Phi-Mat- Transpose/Transposition of Square -Xeon- Phi.pdf
  18. Gomez-Luna J, Sung IJ, Chang LW, et al. In-Place Matrix Transposition on GPUs. IEEE Trans Parallel Distrib Syst. 2016; 27(3): 776–788p.
  19. Intel Cilkplus Tutorial . http://www. cilkplus.org/cilk-plus-tutorial. Accessed on Mar 12 2017.
  20. Intel Cilkplus . http://software.intel. com/en-us/articles/parallelization-with- intel-cilk-plus. Accessed on Mar 07 2017. Cite this Article Riaz Ahmed, Lalitsen Sharma. Empirical Analysis of Cache -Efficient In -place Matrix Transp osition on Multicore Processors. Recent Trends in Parallel Computing. 2019; 6(2): 1–15p.

Read more of it

Subscribe to one journal or build your own list of several. One invoice, one payment, access for a full year.

Subscribe to journals →

Publish your article

Peer-reviewed journals across every subject, with open access options. Send your manuscript to the right editor today.

Publish with us → Calculate your APC
Support