• DocumentCode
    3289627
  • Title

    A CUDA-based parallel implementation of K-nearest neighbor algorithm

  • Author

    Liang, Shenshen ; Liu, Ying ; Wang, Cheng ; Jian, Liheng

  • Author_Institution
    Graduate University of Chinese Academy of Sciences, Beijing, China
  • fYear
    2009
  • fDate
    10-11 Oct. 2009
  • Firstpage
    291
  • Lastpage
    296
  • Abstract
    Recent developments in Graphics Processing Units (GPUs) have enabled inexpensive high performance computing for general-purpose applications. Due to GPU´s tremendous computing capability, it has emerged as the co-processor of the CPU to achieve a high overall throughput. CUDA programming model provides the programmers adequate C language like APIs to better exploit the parallel power of the GPU. K-nearest neighbor (KNN) is a widely used classification technique and has significant applications in various domains, especially in text classification. The computational-intensive nature of KNN requires a high performance implementation. In this paper, we present a CUDA-based parallel implementation of KNN, CUKNN, using CUDA multi-thread model, where the data elements are processed in a data-parallel fashion. Various CUDA optimization techniques are applied to maximize the utilization of the GPU. CUKNN outperforms the serial KNN on an HP xw8600 workstation significantly, achieving up to 46.71X speedup including I/O time. It also shows good scalability when varying the dimension of the reference dataset, the number of records in the reference dataset, and the number of records in the query dataset.
  • Keywords
    Central Processing Unit; Coprocessors; Graphics; High performance computing; Parallel programming; Programming profession; Scalability; Text categorization; Throughput; Workstations; KNN, classification, parallel computing, CUDA;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Cyber-Enabled Distributed Computing and Knowledge Discovery, 2009. CyberC '09. International Conference on
  • Conference_Location
    Zhangijajie
  • Print_ISBN
    978-1-4244-5218-7
  • Electronic_ISBN
    978-1-4244-5219-4
  • Type

    conf

  • DOI
    10.1109/CYBERC.2009.5399145
  • Filename
    5399145