Enabling Highly Efficient k-Means Computations on the SW26010 Many-Core Processor of Sunway TaihuLight

被引:8
|
作者
Li, Min [1 ,2 ]
Yang, Chao [3 ,4 ,5 ]
Sun, Qiao [1 ]
Ma, Wen-Jing [1 ]
Cao, Wen-Long [1 ,2 ]
Ao, Yu-Long [3 ,4 ,5 ]
机构
[1] Chinese Acad Sci, Inst Software, Beijing 100190, Peoples R China
[2] Univ Chinese Acad Sci, Beijing 100049, Peoples R China
[3] Peking Univ, Sch Math Sci, Beijing 100871, Peoples R China
[4] Peking Univ, Ctr Data Sci, Beijing 100871, Peoples R China
[5] Peng Cheng Lab, Shenzhen 518052, Peoples R China
基金
北京市自然科学基金; 中国国家自然科学基金;
关键词
parallel k-means; performance optimization; SW26010; processor; Sunway TaihuLight; ALGORITHM; PERFORMANCE;
D O I
10.1007/s11390-019-1900-5
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
With the advent of the big data era, the amounts of sampling data and the dimensions of data features are rapidly growing. It is highly desired to enable fast and efficient clustering of unlabeled samples based on feature similarities. As a fundamental primitive for data clustering, the k-means operation is receiving increasingly more attentions today. To achieve high performance k-means computations on modern multi-core/many-core systems, we propose a matrix-based fused framework that can achieve high performance by conducting computations on a distance matrix and at the same time can improve the memory reuse through the fusion of the distance-matrix computation and the nearest centroids reduction. We implement and optimize the parallel k-means algorithm on the SW26010 many-core processor, which is the major horsepower of Sunway TaihuLight. In particular, we design a task mapping strategy for load-balanced task distribution, a data sharing scheme to reduce the memory footprint and a register blocking strategy to increase the data locality. Optimization techniques such as instruction reordering and double buffering are further applied to improve the sustained performance. Discussions on block-size tuning and performance modeling are also presented. We show by experiments on both randomly generated and real-world datasets that our parallel implementation of k-means on SW26010 can sustain a double-precision performance of over 348.1 Gflops, which is 46.9% of the peak performance and 84% of the theoretical performance upper bound on a single core group, and can achieve a nearly ideal scalability to the whole SW26010 processor of four core groups. Performance comparisons with the previous state-of-the-art on both CPU and GPU are also provided to show the superiority of our optimized k-means kernel.
引用
收藏
页码:77 / 93
页数:17
相关论文
共 44 条
  • [31] hsSpMV : A Heterogeneous and SPM-aggregated SpMV for SW26010-Pro many-core processor
    Pan, Jingshan
    Xiao, Lei
    Tian, Min
    Wang, Li
    Yang, Chaochao
    Chen, Renjiang
    Ren, Zenghui
    Liu, Anjun
    Zhu, Guanghui
    2023 IEEE/ACM 23RD INTERNATIONAL SYMPOSIUM ON CLUSTER, CLOUD AND INTERNET COMPUTING, CCGRID, 2023, : 62 - 70
  • [32] Optimizing Yinyang K-means algorithm on many-core CPUs
    Zhou T.
    Wang Q.
    Li R.
    Mei S.
    Yin S.
    Hao R.
    Liu J.
    Guofang Keji Daxue Xuebao/Journal of National University of Defense Technology, 2024, 46 (01): : 93 - 102
  • [33] PFSI.sw: A Programming Framework for Sea Ice Model Algorithms Based on Sunway Many-core Processor
    Li, Binyang
    Li, Bo
    Qian, Depei
    2017 IEEE 28TH INTERNATIONAL CONFERENCE ON APPLICATION-SPECIFIC SYSTEMS, ARCHITECTURES AND PROCESSORS (ASAP), 2017, : 119 - 126
  • [34] swParaFEM: a highly efficient parallel finite element solver on Sunway many-core architecture
    Jingshan Pan
    Lei Xiao
    Min Tian
    Tao Liu
    Yinglong Wang
    The Journal of Supercomputing, 2023, 79 : 11427 - 11451
  • [35] swParaFEM: a highly efficient parallel finite element solver on Sunway many-core architecture
    Pan, Jingshan
    Xiao, Lei
    Tian, Min
    Liu, Tao
    Wang, Yinglong
    JOURNAL OF SUPERCOMPUTING, 2023, 79 (10): : 11427 - 11451
  • [36] Implementation and optimization of SpMV algorithm based on SW26010P many-core processor and stored in BCSR format
    Ma, Mengfei
    Huang, Xianqing
    Xu, Jiali
    Jia, Dongning
    SCIENTIFIC REPORTS, 2024, 14 (01):
  • [37] Massive parallelization of multilevel fast multipole algorithm for 3-D electromagnetic scattering problems on SW26010 many-core cluster
    Liu, Xin-Duo
    He, Wei-Jia
    Yang, Ming-Lin
    Sheng, Xin-Qing
    JOURNAL OF SUPERCOMPUTING, 2024, 80 (07): : 8702 - 8718
  • [38] Massive parallelization of multilevel fast multipole algorithm for 3-D electromagnetic scattering problems on SW26010 many-core cluster
    Xin-Duo Liu
    Wei-Jia He
    Ming-Lin Yang
    Xin-Qing Sheng
    The Journal of Supercomputing, 2024, 80 : 8702 - 8718
  • [39] Techniques for Enabling Highly Efficient Message Passing on Many-Core Architectures
    Si, Min
    Balaji, Pavan
    Ishikawa, Yutaka
    2015 15TH IEEE/ACM INTERNATIONAL SYMPOSIUM ON CLUSTER, CLOUD AND GRID COMPUTING, 2015, : 697 - 700
  • [40] xMath2.0: a high-performance extended math library for SW26010-Pro many-core processor
    Fangfang Liu
    Wenjing Ma
    Yuwen Zhao
    Daokun Chen
    Yi Hu
    Qinglin Lu
    WanWang Yin
    Xinhui Yuan
    Lijuan Jiang
    Hao Yan
    Min Li
    Hongsen Wang
    Xinyu Wang
    Chao Yang
    CCF Transactions on High Performance Computing, 2023, 5 : 56 - 71