исследование механизмов оптимизации процессов сбора и

advertisement
ɂɋɋɅȿȾɈȼȺɇɂȿ ɆȿɏȺɇɂɁɆɈȼ ɈɉɌɂɆɂɁȺɐɂɂ ɉɊɈɐȿɋɋɈȼ ɋȻɈɊȺ ɂ
ɈȻɊȺȻɈɌɄɂ ȾȺɇɇɕɏ ȼ ɆɇɈȽɈɉɈɌɈɑɇɕɏ QT-ɉɊɂɅɈɀȿɇɂəɏ ȾɅə ɋɂɋɌȿɆ
ȺȼɌɈɆȺɌɂɁȺɐɂɂ ȺɌɆɈɋɎȿɊɇɕɏ ɆɂɄɊɈȼɈɅɇɈȼɕɏ ɇȺȻɅɘȾȿɇɂɃ
ȿ.ȼ. Ȼɚɪɚɧɨɜ, ȼ.Ɇ. Ⱦɺɦɤɢɧ
'
«
# # » – ' '
603155, ' ', . ;. +, 25/12, %
valerdem@mail.ru
: +7 (831) 416-95-49
Ʉɥɸɱɟɜɵɟ ɫɥɨɜɚ: ɩɥɚɬɮɨɪɦɚ Windows, ɹɡɵɤ ɩɪɨɝɪɚɦɦɢɪɨɜɚɧɢɹ ɋ++, ɝɪɚɮɢɱɟɫɤɢɣ ɢɧɬɟɪɮɟɣɫ
ɩɨɥɶɡɨɜɚɬɟɥɹ, ɩɪɢɥɨɠɟɧɢɟ, ɤɥɚɫɫ, ɛɢɛɥɢɨɬɟɤɚ Qt (Qt Development Frameworks), ɩɨɬɨɤɢ, ɛɢɛɥɢɨɬɟɤɚ CUDA, ɝɪɚɮɢɱɟɫɤɢɟ ɩɪɨɰɟɫɫɨɪɵ, ɫɢɫɬɟɦɚ ɚɜɬɨɦɚɬɢɡɚɰɢɢ
Abstract
This article presents some results of research of mechanisms of optimization of processes of data
acquisition and processing in multithreaded applications for the systems of automation of atmospheric microwave observations. Software development is oriented to use Qt library from Nokia’s
Qt Development Frameworks and C++ for Microsoft Windows platform. The project decisions
of realization data acquisition and processing algorithms are presented both for the traditional uniprocessor systems and the facilities of CUDA library (NVIDIA) extended due to bringing in for
graphic processors.
ȼɜɟɞɟɧɢɟ
* !
,
" $+9 %&' ,
, Qt- !
Windows [1-2].
“-” ! . “-” !
: ! [3-6], – !
[7-8].
9 Windows-
# Qt (Trolltech – 1996 .; Qt Software – 2008 . Qt
Development Frameworks – 2009 . Nokia) [10].
*
Windows- , # , $+9 %&' [1-2].
*, , !
, . , , : # !
, – " . + , .
269
, ,
, " Windows- [3-6]. # !
, ,
, # " , ! . , , " , ! . (
, , , – [9].
* # !
, 1. 8 , “” ! . +
.
Ɇɨɞɭɥɶ
ɭɩɪɚɜɥɟɧɢɹ
ɇɚɫɬɪɨɣɤɚ
ɩɚɪɚɦɟɬɪɨɜ
ɋɛɨɪ ɞɚɧɧɵɯ
Ɉɛɪɚɛɨɬɤɚ
ɞɚɧɧɵɯ
ȼɢɡɭɚɥɢɡɚɰɢɹ ɞɚɧɧɵɯ
% 1 – *" 2
! , " . <!! “” ! Windows- , , 2. , , “” . ' , . ' , #, . .
!! “” !.
2
Windows- # , , ! , , . , $+9 %&' , !
[7-8]. , !
,
" ,
, " , #, 2.
270
Ƚɥɚɜɧɵɣ ɩɨɬɨɤ
2
ɉɨɬɨɤ
ɫɛɨɪɚ ɞɚɧɧɵɯ
'
ɉɨɬɨɤ
ɨɛɪɚɛɨɬɤɢ ɞɚɧɧɵɯ
( *
% 2 – *" !
1 , .
+ , - , 400 . . *, , # , , .
1 Ɇɟɯɚɧɢɡɦɵ ɨɩɬɢɦɢɡɚɰɢɢ ɩɪɨɰɟɫɫɨɜ ɫɛɨɪɚ ɢ ɨɛɪɚɛɨɬɤɢ ɞɚɧɧɵɯ – ɩɟɪɜɵɣ ɲɚɝ
+ , «& » , .
' "
, : t1, t2 t3,
t3 = t1 + t2. 3 t1 t2 . + «
» « », . ( . t1, t2 t3 !
. $, , .
t1, t2 t3 . . -
. + «+ ». “” !!
,
.
271
* , Qt-, " . * “” . “%” # , " . , , # , , " " “” .
% # . +, 16
, – 2 (, short int (++). - 8 , #
32 20 , 4 (, float (++), .. 16 10, .
' ! ( V ), ( N ), # , " ( " ), ( k ) # ( n ):
N
V = + k ( n − 1)
n
* nopt N opt :
nopt =
N
k
N opt = 2 kN − k
, n N , n # nopt N .
$, ,
, ! .
2 Ɇɟɯɚɧɢɡɦɵ ɨɩɬɢɦɢɡɚɰɢɢ ɩɪɨɰɟɫɫɨɜ ɫɛɨɪɚ ɢ ɨɛɪɚɛɨɬɤɢ ɞɚɧɧɵɯ – ɜɬɨɪɨɣ ɲɚɝ
* , Qt-, " " . * # !
(CPU) CUDA
(NVIDIA) ! (GPU) [11].
CUDA (
), CPU GPU .
272
+ # !
, :
•
Intel Core i5-650, 2 ( Hyper-Threading), " 3.20 ..;
•
4 . DDR3, " 1333 M.;
•
NVIDIA GeForce GTX 470, Fermi, 448 , " 1215 M., 1280 M DDR5;
•
*( Ubuntu 10.10 64-
2.6.35.28;
•
CPU (gcc 4.4.5);
•
CUDA SDK 3.2.
7 ! 1 2500 102400 float. + # #, , , # , , " , CPU GPU .
+ CPU , GPU – # – GPU CPU GPU . ! 3 .
( # CPU, # CPU GPU. ' 3 ! ( ) .
% 3 – 8 CPU
, ( !) ( !) , CPU, # 4 8 (
!) . : , , # " , . , , # , GPU (. 4).
273
% 4 – 8 GPU CPU
( ( 700 ) CPU ( ! 3 ! 4) GPU (! 4,
), , CPU . < , CPU GPU 2 . * CPU , GPU. , CPU , GPU . <
1 GPU " . , , 2500 GPU
. (, , CPU !!
, GPU – #.
, GPU ( ! 4): " , , . , , GPU !!
- " .
Ɂɚɤɥɸɱɟɧɢɟ
1)
2)
3)
(! :
"
!
.
$
Qt- «& ». +
. CUDA (NVIDIA) ! .
+
!
.
Ȼɥɚɝɨɞɚɪɧɨɫɬɢ
% %99$ 10-05-00849- (2010-2012 .).
274
ɋɩɢɫɨɤ ɥɢɬɟɪɚɬɭɪɵ
[1] . &.'., ) .2. $ ! // +
: ,
X
2 ! ((, 23-25 2008 .). – (: ( %&', 2008, . 518–521.
[2] . &.'., ) .2. +
Qt- !
// +
: ,
XI 2 ! ((, 22-24 2009 .). – (: ( %&', 2009, . 652–657.
[3] 4.4., &.&., ) .2., %
... ! 29 2006 // $ %&'. 9 !
, 2008, .44, :4, .522–526.
[4] Yu.Yu.Kulikov, A.A.Krasilnikov, V.M.Demkin Fast variations of thermal emission of middle atmosphere
in a line of ozone at frequency 110.8 GHz on plateau Shatzhatmas-Kislovodsk // Abstr. of the 31 st Annual
Apatity seminar “Physics of Auroral Phenomena”. – Apatity, 2008, p.72–73.
[5] ; 2.$., ) .2., &.&., /.2., 4.4., %
..., ? .'. 2
! &. // . , 2010, .50, :2, .265–272.
[6] &.&., 4.4., ) .2., /.2., 2 ./., %
...,
? .'., ? 2.8., ? .&., T &.2. 2
!
// +
, 2011, :1, .127–133.
[7] 9 /.$., ? &.&., ? &.+., ) .2., # .&., /.2., ; ...,
. .&., + $.., T &.2. %
- // 2
18- 2 !.
“(5- ” (
2’ 2008). ,. . – (,
2008, .878–879.
[8] ? &.&., ) .2., # .&., (
'.., 9 /.$. 2
!
// $ 68. %!, 2009, .52, :8, .671–677.
[9] . &.'., ) .2. &
!
// +
: ,
XII 2 ! ((, 21-23 2010 .). – (: (
%&', 2010, . 304–309.
[10] http://qt.nokia.com
[11] http://www.nvidia.ru/object/cuda_home_new_ru.html
275
Download