OpenCL and SoC-FPGA-Based K neighbor sorting accelerating method

A technology of K-nearest neighbors and classification data, which is applied in the acceleration field of K-nearest neighbors classification technology, which can solve the problems of occupying a lot of hardware resources, large system delay, and large amount of computation, and achieve low power consumption, small system delay, and data throughput high volume effect

Inactive Publication Date: 2015-08-26
UNIV OF ELECTRONICS SCI & TECH OF CHINA
View PDF7 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The purpose of the present invention is to overcome the deficiencies of the prior art, provide a kind of acceleration method based on the K-nearest neighbor classification technology of SoC-FPGA novel heteroge

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • OpenCL and SoC-FPGA-Based K neighbor sorting accelerating method
  • OpenCL and SoC-FPGA-Based K neighbor sorting accelerating method
  • OpenCL and SoC-FPGA-Based K neighbor sorting accelerating method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] Further describe the technical scheme of the present invention in detail below in conjunction with accompanying drawing:

[0033] The procedure of this method is as follows figure 1 As shown, the ARM is the host side, which is connected to the FPGA device side through the AXI bus. The high-bandwidth feature of the AXI on-chip bus will greatly shorten the communication delay between the host and the device and improve the system throughput. According to the task allocation of the K-nearest neighbor classification algorithm, the calculation-intensive and suitable parallel distance matrix calculation and distance sorting part are executed on the FPGA side in the form of kernel programs, and the light-calculating and difficult-to-parallel parts such as category statistics and classification are executed on the ARM side. .

[0034] The memory model provided by the OpenCL standard includes global memory, local memory, and private memory, etc. Since the global memory has many...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an OpenCL and SoC-FPGA-based K neighbor sorting accelerating method, which comprises the following steps: S1: establishing an SoC-FPGA heterogeneous platform model; S2: establishing an OpenCL host program with a control action at an ARM host port; S3: establishing an inner core by a host program of the ARM host port; S4; configuring and calling an inner core program of an FPGA equipment port by the ARM host port and transmitting data to the FPGA equipment port; S5: calculating an Euclidean distance of data of data distance training sets to be classified by a first inner core program and generating a distance matrix; S6: performing incomplete sorting on each row of the distance matrix by a second inner core program, screening K minimal distance of each row, finding corresponding training set element types and sending back to the ARM host port for processing; S7: performing type counting and classifying by the ARM host port. According to the invention, an OpenCL standard is used for realizing and optimizing the FPGA of a K neighbor sorting algorithm, a system level procedure is formed at the ARM port and the FPGA port, and compared with the traditional GPU heterogeneous computing system, the method has the advantages of lower power consumption and higher energy efficiency.

Description

technical field [0001] The invention relates to an acceleration method of K nearest neighbor classification technology based on SoC-FPGA novel heterogeneous computing system. Background technique [0002] As one of the top ten classic data mining algorithms in the 20th century, the K-nearest neighbor algorithm is widely used in text classification, pattern recognition, image and spatial classification and other fields due to its advantages of accuracy, simplicity and effectiveness. The K-nearest neighbor algorithm is based on lazy learning. Its basic idea is to find the K reference samples closest to each sample to be classified in the known training set, and determine the category of the sample to be classified according to the most category of the K reference samples. However, the K-nearest neighbor algorithm involves a lot of calculations, especially when the training set samples compared with the samples to be classified are large, it will bring a lot of calculation over...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/38G06F9/50
CPCY02D10/00
Inventor 蒲宇亮黄乐天彭军贺江
Owner UNIV OF ELECTRONICS SCI & TECH OF CHINA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products