Design of GPU-based parallel computation architecture of Thomson scattering diagnostic in KSTAR

https://doi.org/10.1016/j.fusengdes.2020.111624Get rights and content

Abstract

The Thomson scattering (TS) System is a diagnostic system to measure electron temperature and density profiles of tokamak plasma. The TS system requires measurement of many input signals, and the amount of raw data has significantly increased since the TS data acquisition (DAQ) system was upgraded to a fast digitizer. Research has been done on applying artificial neural network (ANN) to TS data analysis for reducing calculation time. In this paper, we propose a design of computation architecture to effectively process the increased amount of data caused by the fast digitizer and to maximize the computation performance of the ANN. In the design, the intensity values of each input signal and the ANNs can be computed in parallel by utilizing a graphical processing unit (GPU). Furthermore, we integrate the data analysis task into the TS DAQ program for real time operation. Considering stability of the integration, we separate tasks of the data acquisition and the data analysis into each thread operation, and make tasks of each digitizer board to be conducted in parallel. In the feasibility test of the design, the calculation time is shown to be appropriate for real time operation.

Introduction

The Thomson scattering (TS) System is a diagnostic system to measure electron temperature and density profiles of tokamak plasma [1]. As the whole procedure of the diagnostic, a laser beam with a single wave length of light penetrates the tokamak plasma, and is scattered to a wide range of wave-length. The scattered light is collected by lenses, and is transmitted to a polycromator which divides the light in several areas of the wave-length. It also converts the optical signal to the electrical voltage. The TS data acquisition (DAQ) system converts the analog signals into digital signals, which are used in TS data analysis.

The TS system can provide absolute measurements and high resolution spatial profiles; thus, it becomes one of the major diagnostics in most tokamak devices such as JET [2], DIII-D [3], ASDEX [4], JT-60T [5], etc. In KSTAR, the TS system was introduced in 2010 [6], and has been consistently upgraded in terms of the DAQ system [7], [8], [9], the polycromator [10], [11], an alignment device [12], and research of data analysis algorithm [13], [14]. Especially in the TS DAQ system, a fast digitizer with 5 GS/s has been adopted [9]. The previous digitizer in [6] is a charge-to-digital conversion (QDC) system which obtains only one value of integration of the electrical pulse signal. The fast digitizer acquires time series data of the pulse signal; thus, we can analyze the shape of the pulse signal and its noise level, which can be applied to signal processing. However, the amount of the raw data to be processed significantly increases. In the research of the data analysis algorithm, the authors of [13] analyzed the noise effects of the χ-square method which had been used for calculation of the electron temperature profiles. This method requires much computation time because the χ-square should be calculated with the full range of the electron temperature. In [14], an artificial neural network (ANN) was designed to improve the computation time.

In this paper, we propose a computation architecture design based on graphical processing unit (GPU) to effectively process the increased amount of data from the fast digitizer and to maximize the computation performance of the ANN. Usage of the GPU for general purposes has been enabled since NVIDIA developed CUDA™ (Compute Unified Device Architecture). Enhancement of data processing performance using the GPU had been researched in fusion engineering such as fast magnetic field computation [15], real time equilibrium reconstruction [16], 2-D microwave image [17], reflectometer [18], etc. The accelerated calculation speed is mainly due to the parallel computation architecture inherent in the GPU, and the TS diagnostic algorithm can be calculated in parallel in the following two ways: First, the intensity of the pulse signal in the fast digitizer can be effectively calculated by using multi-threads of GPU, which can be conducted in parallel by assigning a GPU block for each input signal. Second, the ANN can be effectively computed by the GPU because most of the computation of the ANN is composed of the matrix operation, and the multi-ANNs can be computed in parallel by assigning a GPU block for each ANN.

A suitable object for this proposed design is aimed at analyzing TS data in real time. In order to achieve this, both the data acquisition and the data analysis should cooperate in the TS DAQ program; thus, we design integration of the data analysis task into the program. In the design, the stability of the integration becomes important because an abnormal status of the data analysis task could cause operational failure of the whole system. Therefore, we separate both the tasks into each thread operation so that the data acquisition task is maintained even if the data analysis task fails. In addition, the DAQ system consists of several digitizer boards, and we make the tasks of each board conduct independently so that the operational status of one board does not affect the others.

Section snippets

Preliminaries

In this section, we review the details of the TS DAQ system in KSTAR which are closely related to our design of the computation architecture.

Main results

In this section, we explain the design of the computation architecture for the TS data analysis.

Feasibility test

In this section, we conduct a feasibility test for the presented design to examine whether the computation time is appropriate for real time operation. The GPU model used in the test is TITAN V which the specifications can be seen in Table 2 [20]. In the feasibility test, the data acquisition is simulated by reading a sample data file with a period of 20 ms. We assume 4 digitizer boards are fully operated; thus, we make 4 data read threads and 4 GPU threads and measure the time length for when

Conclusion and future works

In this paper, we design the GPU-based parallel computation architecture to calculate the intensity values of the TS pulse signals and the ANNs in order to accelerate the computation speed so that real time operation is enabled. For implementation of real time operation, we design the integration of the computation architecture into the TS DAQ program. Considering the stability of the integration, we separate all tasks of the data acquisition and the data analysis for each digitizer board into

Authors’ contribution

Seung-Ju Lee: conceptualization, methodology, software, validation, writing – original draft & editing. Jongha Lee: conceptualization, resources, writing – review. Taehyun Tak: software. Taegu Lee: software. Jaesic Hong: supervision, writing – review.

Conflict of interest

None declared.

Acknowledgements

This research was supported by Main Research Program (EN1902) of the National Fusion Research Institute (NFRI) funded by the Ministry of Science and ICT of Republic of Korea.

References (20)

  • W. Lee et al.

    Development of the epics-based data acquisition system for Thomson scattering diagnostic

    Fusion Eng. Des.

    (2011)
  • A.G. Chiariello et al.

    Fast magnetic field computation in fusion technology using GPU technology

    Fusion Eng. Des.

    (2013)
  • Y. Huang et al.

    Improvement of GPU parallel real-time equilibrium reconstruction for plasma control

    Fusion Eng. Des.

    (2018)
  • N. Peacock et al.

    Measurement of the electron temperature by Thomson scattering in Tokamak T3

    Nature

    (1969)
  • H. Salzmann et al.

    First results from the Lidar Thomson scattering system on jet

    Nucl. fusion

    (1987)
  • C. Greenfield et al.

    Real-time digital control, data acquisition, and analysis system for the diii-d multipulse thomson scattering diagnostic

    Rev. Sci. Instrum.

    (1990)
  • H. Murmann et al.

    The thomson scattering systems of the asdex upgrade tokamak

    Rev. Sci. Instrum.

    (1992)
  • H. Yoshida et al.

    Quantitative method for precise, quick, and reliable alignment of collection object fields in the jt-60u thomson scattering diagnostic

    Rev. Sci. Instrum.

    (1997)
  • J. Lee et al.

    Development of KSTAR Thomson scattering system

    Rev. Sci. Instrum.

    (2010)
  • W. Lee et al.

    Synchronized operation by field programmable gate array based signal controller for the Thomson scattering diagnostic system in KSTAR

    Rev. Sci. Instrum.

    (2012)
There are more references available in the full text version of this article.

Cited by (4)

  • Design for parallel computation of model-based signal processing in Thomson scattering diagnostic

    2021, Fusion Engineering and Design
    Citation Excerpt :

    In this subsection, we explain how to implement the nonlinear least square method of our approach in the GPU-based parallel computation architecture. Fig. 3 describes expansion of the TS diagnostic calculation procedure of [5], in which we add the model-based signal processing for the TS pulse signals. The model-based signal processing is conducted for each channel in parallel, and the model parameters of the fitted pulse curve are obtained.

View full text