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 条
  • [21] Parallel SHA-256 on SW26010 many-core processor for hashing of multiple messages
    Wang, Ziheng
    Dong, Xiaoshe
    Kang, Yan
    Chen, Heng
    JOURNAL OF SUPERCOMPUTING, 2023, 79 (02): : 2332 - 2355
  • [22] Evaluating the SW26010 many-core processor with a micro-benchmark suite for performance optimizations
    Lin, James
    Xu, Zhigeng
    Cai, Linjin
    Nukada, Akira
    Matsuoka, Satoshi
    PARALLEL COMPUTING, 2018, 77 : 128 - 143
  • [23] General SpMV Implementation in Many-Core Domestic Sunway 26010 Processor
    Liu F.-F.
    Yang C.
    Yuan X.-H.
    Wu C.-M.
    Ao Y.-L.
    Ruan Jian Xue Bao/Journal of Software, 2018, 29 (12): : 3921 - 3932
  • [24] Bandwidth Reduced Parallel SpMV on the SW26010 Many-Core Platform
    Sun, Qiao
    Zhang, Changyou
    Wu, Changmao
    Zhang, Jiajia
    Li, Leisheng
    PROCEEDINGS OF THE 47TH INTERNATIONAL CONFERENCE ON PARALLEL PROCESSING, 2018,
  • [25] An OpenCL Compiler for the Homegrown Heterogeneous Many-Core Processor on the Sunway TaihuLight Supercomputer
    Wu M.-C.
    Huang L.
    Liu Y.
    He X.-B.
    Feng X.-B.
    Liu, Ying (liuying2007@ict.ac.cn), 2018, Science Press (41): : 2236 - 2250
  • [26] Design and Optimization of Parallel Algorithm for Kalman Filter on SW26010 Many-Core Processors
    Yang, Aiqiang
    JOURNAL OF CIRCUITS SYSTEMS AND COMPUTERS, 2022, 31 (04)
  • [27] A Well-Scaling Parallel FEM-DDM Algorithm for Electromagnetic Simulation on SW26010 Many-core Processor
    Lai, Jian-Zhong
    Liu, Rui-Qing
    He, Wei-Jia
    Wang, Wu
    Yang, Ming-Lin
    Sheng, Xin-Qing
    2020 IEEE MTT-S INTERNATIONAL CONFERENCE ON NUMERICAL ELECTROMAGNETIC AND MULTIPHYSICS MODELING AND OPTIMIZATION (NEMO 2020), 2020,
  • [28] Towards efficient canonical polyadic decomposition on sunway many-core processor
    Dun, Ming
    Li, Yunchun
    Sun, Qingxiao
    Yang, Hailong
    Li, Wei
    Luan, Zhongzhi
    Gan, Lin
    Yang, Guangwen
    Qian, Depei
    INFORMATION SCIENCES, 2021, 549 : 221 - 248
  • [29] Task Parallel Framework and Its Application in Nested Parallel Algorithms on the SW26010 Many-core Platform
    Sun Q.
    Li L.-S.
    Zhao H.-T.
    Zhao H.
    Wu C.-M.
    Wu, Chang-Mao (changmaowu@foxmail.com), 1600, Chinese Academy of Sciences (32): : 2352 - 2364
  • [30] swGBDT: Efficient Gradient Boosted Decision Tree on Sunway Many-Core Processor
    Yin, Bohong
    Li, Yunchun
    Dun, Ming
    You, Xin
    Yang, Hailong
    Luan, Zhongzhi
    Qian, Depei
    SUPERCOMPUTING FRONTIERS (SCFA 2020), 2020, 12082 : 67 - 86