Implementation and Optimization of Parallel KNN Algorithm for Sunway Architecture

The K-Nearest Neighbor(KNN) algorithm is the most typically used classification algorithm in artificial intelligence,and its performance improvement significantly affects the sorting and analysis of massive data and big data classification.The current new generation of Sunway supercomputers is in th...

Full description

Saved in:
Bibliographic Details
Published in:Ji suan ji gong cheng Vol. 49; no. 5; pp. 286 - 294
Main Author: WANG Qihan, PANG Jianmin, YUE Feng, ZHU Di, SHEN Li, XIAO Qian
Format: Journal Article
Language:Chinese
English
Published: Editorial Office of Computer Engineering 01.05.2023
Subjects:
ISSN:1000-3428
Online Access:Get full text
Tags: Add Tag
No Tags, Be the first to tag this record!
Abstract The K-Nearest Neighbor(KNN) algorithm is the most typically used classification algorithm in artificial intelligence,and its performance improvement significantly affects the sorting and analysis of massive data and big data classification.The current new generation of Sunway supercomputers is in the initial stage of application development. Exploiting the structural characteristics of the new-generation Sunway heterogeneous many-core processors allows an efficient KNN algorithm to be achieved for massive data analysis and collation.In this study,based on the structural characteristics of the SW26010pro processor,the master-slave acceleration programming model is used to implement the basic version of the KNN parallel algorithm,which transfers the computing core to the slave core for thread-level parallelism.Subsequently,the key factors affecting the performance of the basic parallel algorithm are analyzed,and the SWKNN algorithm is proposed,which is different from the task-division method of the basic parallel KNN algorithm. Finally,unnecessary communication overhead is reduced through data pipelining optimization,intercore communication optimization,and secondary load balancing optimization,which effectively relieves memory access pressure and further improves the algorithm performance.The experimental results show that,compared with the serial KNN algorithm,the basic parallel KNN algorithm for the Sunway architecture can achieve a maximum speedup that is 48 times higher on the single-core group of the SW26010pro processor.At the same scale,the SWKNN can achieve a speedup that is 399 times higher than that of the basic parallel KNN algorithm.
AbstractList The K-Nearest Neighbor(KNN) algorithm is the most typically used classification algorithm in artificial intelligence,and its performance improvement significantly affects the sorting and analysis of massive data and big data classification.The current new generation of Sunway supercomputers is in the initial stage of application development. Exploiting the structural characteristics of the new-generation Sunway heterogeneous many-core processors allows an efficient KNN algorithm to be achieved for massive data analysis and collation.In this study,based on the structural characteristics of the SW26010pro processor,the master-slave acceleration programming model is used to implement the basic version of the KNN parallel algorithm,which transfers the computing core to the slave core for thread-level parallelism.Subsequently,the key factors affecting the performance of the basic parallel algorithm are analyzed,and the SWKNN algorithm is proposed,which is different from the task-division method of the basic parallel KNN algorithm. Finally,unnecessary communication overhead is reduced through data pipelining optimization,intercore communication optimization,and secondary load balancing optimization,which effectively relieves memory access pressure and further improves the algorithm performance.The experimental results show that,compared with the serial KNN algorithm,the basic parallel KNN algorithm for the Sunway architecture can achieve a maximum speedup that is 48 times higher on the single-core group of the SW26010pro processor.At the same scale,the SWKNN can achieve a speedup that is 399 times higher than that of the basic parallel KNN algorithm.
Author WANG Qihan, PANG Jianmin, YUE Feng, ZHU Di, SHEN Li, XIAO Qian
Author_xml – sequence: 1
  fullname: WANG Qihan, PANG Jianmin, YUE Feng, ZHU Di, SHEN Li, XIAO Qian
  organization: 1. State Key Laboratory of Mathematical Engineering and Advanced Computing, Information Engineering University, Zhengzhou 450000, China;2. University of Science and Technology of China, Hefei 230000, China;3. Jiangnan Institute of Computing Technology, Wuxi 214000, Jiangsu, China
BookMark eNo9jMtOAjEYRrvAREDfoT7AjL3MpV0S4oVIQKOuJ__0AiWdKemUGHx6J2L8NiffWZwZmvShNwjdUZJTWdXi_pC7YehzSgjJeMFETkjFZVlM0PTfXaPZMBwIKRgjZIreVt3Rm870CZILPYZe4-0xuc59X0Sw-BUieG88ftls8MLvQnRp32EbIn4_9V9wxouo9i4ZlU7R3KArC34wt3-co8_Hh4_lc7bePq2Wi3WmKa9SpouK6aKVUiluJCNArVKVpBIYGCWh1ZpCzYm2YABYaVUJQlopqrrSXJR8jlaXrg5waI7RdRDPTQDX_IoQdw3E5JQ3DVhhrbTAxxXciJZqrcfUeFrNxtwPRtZi_A
ContentType Journal Article
DBID DOA
DOI 10.19678/j.issn.1000-3428.0063954
DatabaseName DOAJ Directory of Open Access Journals
DatabaseTitleList
Database_xml – sequence: 1
  dbid: DOA
  name: DOAJ Directory of Open Access Journals
  url: https://www.doaj.org/
  sourceTypes: Open Website
DeliveryMethod fulltext_linktorsrc
Discipline Engineering
EndPage 294
ExternalDocumentID oai_doaj_org_article_af8ff9fa333343e8b1dddf98343bd26d
GroupedDBID -0Y
5XA
5XJ
92H
92I
ABJNI
ACGFS
ALMA_UNASSIGNED_HOLDINGS
CCEZO
CUBFJ
CW9
GROUPED_DOAJ
TCJ
TGT
U1G
U5S
ID FETCH-LOGICAL-d136t-d462d4b99cc3e920a1fcc6919a2aec9abdd1a730dfaeaa25fc5a89f98676d3853
IEDL.DBID DOA
ISSN 1000-3428
IngestDate Mon Nov 03 22:08:57 EST 2025
IsDoiOpenAccess true
IsOpenAccess true
IsPeerReviewed true
IsScholarly true
Issue 5
Language Chinese
English
LinkModel DirectLink
MergedId FETCHMERGED-LOGICAL-d136t-d462d4b99cc3e920a1fcc6919a2aec9abdd1a730dfaeaa25fc5a89f98676d3853
OpenAccessLink https://doaj.org/article/af8ff9fa333343e8b1dddf98343bd26d
PageCount 9
ParticipantIDs doaj_primary_oai_doaj_org_article_af8ff9fa333343e8b1dddf98343bd26d
PublicationCentury 2000
PublicationDate 2023-05-01
PublicationDateYYYYMMDD 2023-05-01
PublicationDate_xml – month: 05
  year: 2023
  text: 2023-05-01
  day: 01
PublicationDecade 2020
PublicationTitle Ji suan ji gong cheng
PublicationYear 2023
Publisher Editorial Office of Computer Engineering
Publisher_xml – name: Editorial Office of Computer Engineering
SSID ssj0042200
Score 2.2458696
Snippet The K-Nearest Neighbor(KNN) algorithm is the most typically used classification algorithm in artificial intelligence,and its performance improvement...
SourceID doaj
SourceType Open Website
StartPage 286
SubjectTerms heterogeneous many-core processors|k-nearest neighbor(knn) algorithm|parallel computing|algorithm optimization|classification performance
Title Implementation and Optimization of Parallel KNN Algorithm for Sunway Architecture
URI https://doaj.org/article/af8ff9fa333343e8b1dddf98343bd26d
Volume 49
hasFullText 1
inHoldings 1
isFullTextHit
isPrint
journalDatabaseRights – providerCode: PRVAON
  databaseName: DOAJ Directory of Open Access Journals
  issn: 1000-3428
  databaseCode: DOA
  dateStart: 20160101
  customDbUrl:
  isFulltext: true
  dateEnd: 99991231
  titleUrlDefault: https://www.doaj.org/
  omitProxy: false
  ssIdentifier: ssj0042200
  providerName: Directory of Open Access Journals
link http://cvtisr.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwrV1JSwMxFA5SRPQgrrgTweu0M8kkkxyrWARhrKjQ2_CyudCZSm0V_72ZyVh682JuSSCE93gbyfs-hC4oNyYBwSMrHItSrlgkhYTISKHAp8wALdlEludiNJLDJaqv-k9YgAcOguuBE85JB9SPlFqhEmOMk8JPlCHc1N43zuRvMRV8cEpIHHAIYu9lfIa9hs6bzjzvmntvjXl1F3vdJkwHPoAFan8TXgZbaLPNC3E_3GcbrdhqB20soQXuovsGybdsm4UqDJXBd97iy7aVEk8cHsK0JkcZ49s8x_3x88TX_i8l9pkpfphXX_CN-0svB3voaXD9eHUTtYwIkUkon0Um5cSkSkqtqZUkhsRpzWUigYDVElQteG-zxoEFIMxpBkJ6afGMG-oj8z7qVJPKHiCsSaatZknmGKRUgCIxE4ZmzCqR2lgcostaGsV7AL0oahjqZsErp2iVU_ylnKP_OOQYrdcc7-GX4QnqzKZze4pW9efs9WN61uj9B6TitDA
linkProvider Directory of Open Access Journals
openUrl ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.atitle=Implementation+and+Optimization+of+Parallel+KNN+Algorithm+for+Sunway+Architecture&rft.jtitle=Ji+suan+ji+gong+cheng&rft.au=WANG+Qihan%2C+PANG+Jianmin%2C+YUE+Feng%2C+ZHU+Di%2C+SHEN+Li%2C+XIAO+Qian&rft.date=2023-05-01&rft.pub=Editorial+Office+of+Computer+Engineering&rft.issn=1000-3428&rft.volume=49&rft.issue=5&rft.spage=286&rft.epage=294&rft_id=info:doi/10.19678%2Fj.issn.1000-3428.0063954&rft.externalDBID=DOA&rft.externalDocID=oai_doaj_org_article_af8ff9fa333343e8b1dddf98343bd26d
thumbnail_l http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/lc.gif&issn=1000-3428&client=summon
thumbnail_m http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/mc.gif&issn=1000-3428&client=summon
thumbnail_s http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/sc.gif&issn=1000-3428&client=summon