{"title":"基于GPU的不确定性评估并行处理加速蒙特卡罗计算","authors":"C. Tsui, A. Yan, H.M. Lai","doi":"10.51843/wsproceedings.2018.14","DOIUrl":null,"url":null,"abstract":"The GUM Supplement 2 deals with measurement models with more than one output quantities, which may be mutually correlated. Such measurement models are common in electrical metrology where the measurand can be complex-valued quantities, such as S-parameters. The GUM Supplement 2 describes a Monte Carlo Method (MCM) for evaluating the output quantities, their standard uncertainties, the covariances between them and the coverage region. The Standards and Calibration Laboratory (SCL) has developed six years ago a software tool for evaluation of measurement models for complex-valued quantities in accordance with GUM Supplement 2. The SCL software tool was written in Visual C++ and Visual Basic for Application (VBA), with Microsoft Excel as frontend user interface. As MCM involves large number of repetitive computations, this old SCL software tool has long processing time especially for complicated measurement models such as coaxial airline. Nowadays many personal computers are equipped with Graphics Processing Unit (GPU) containing massive number of floating point cores. A high end GPU may have nearly 2000 cores while the main CPU normally has only up to 4 cores. As MCM is well suited to parallel processing, to speed up the uncertainty computation, SCL has ported the algorithm to GPU using the Open Computing Language (OpenCL) which was specially designed to support parallel computing. The new SCL tool is an add-on module to Microsoft Excel which allows uncertainty budget listed in spreadsheet table to be calculated by MCM. GPU from the major suppliers Nvidia, AMD and Intel are supported. The uncertainty computation time can be reduced by more than ten times. This paper describes the design and implementation of this new software tool.","PeriodicalId":120844,"journal":{"name":"NCSL International Workshop & Symposium Conference Proceedings 2018","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1900-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Speeding up Monte Carlo Computations by Parallel Processing Using GPU for Uncertainty Evaluation in Accordance with GUM Supplement 2\",\"authors\":\"C. Tsui, A. Yan, H.M. Lai\",\"doi\":\"10.51843/wsproceedings.2018.14\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"The GUM Supplement 2 deals with measurement models with more than one output quantities, which may be mutually correlated. Such measurement models are common in electrical metrology where the measurand can be complex-valued quantities, such as S-parameters. The GUM Supplement 2 describes a Monte Carlo Method (MCM) for evaluating the output quantities, their standard uncertainties, the covariances between them and the coverage region. The Standards and Calibration Laboratory (SCL) has developed six years ago a software tool for evaluation of measurement models for complex-valued quantities in accordance with GUM Supplement 2. The SCL software tool was written in Visual C++ and Visual Basic for Application (VBA), with Microsoft Excel as frontend user interface. As MCM involves large number of repetitive computations, this old SCL software tool has long processing time especially for complicated measurement models such as coaxial airline. Nowadays many personal computers are equipped with Graphics Processing Unit (GPU) containing massive number of floating point cores. A high end GPU may have nearly 2000 cores while the main CPU normally has only up to 4 cores. As MCM is well suited to parallel processing, to speed up the uncertainty computation, SCL has ported the algorithm to GPU using the Open Computing Language (OpenCL) which was specially designed to support parallel computing. The new SCL tool is an add-on module to Microsoft Excel which allows uncertainty budget listed in spreadsheet table to be calculated by MCM. GPU from the major suppliers Nvidia, AMD and Intel are supported. The uncertainty computation time can be reduced by more than ten times. This paper describes the design and implementation of this new software tool.\",\"PeriodicalId\":120844,\"journal\":{\"name\":\"NCSL International Workshop & Symposium Conference Proceedings 2018\",\"volume\":\"1 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"1900-01-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"NCSL International Workshop & Symposium Conference Proceedings 2018\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.51843/wsproceedings.2018.14\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"NCSL International Workshop & Symposium Conference Proceedings 2018","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.51843/wsproceedings.2018.14","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
摘要
GUM补充2处理具有多个输出量的测量模型,这些输出量可能是相互相关的。这种测量模型在电气计量中很常见,其中被测量量可以是复值量,例如s参数。GUM补充2描述了一种蒙特卡罗方法(MCM),用于评估输出量、它们的标准不确定度、它们与覆盖区域之间的协方差。标准及校正实验所(标准校正实验所)于六年前开发了一套软件工具,用于根据GUM补充条例2评估复杂数值的测量模型。SCL软件工具使用Visual c++和Visual Basic for Application (VBA)编写,前端用户界面采用Microsoft Excel。由于MCM涉及大量的重复计算,这种旧的SCL软件工具处理时间长,特别是对于同轴航线等复杂的测量模型。如今,许多个人计算机都配备了包含大量浮点核的图形处理单元(GPU)。高端GPU可能有近2000个核心,而主CPU通常只有4个核心。由于MCM非常适合并行处理,为了加快不确定性计算的速度,SCL使用专门为支持并行计算而设计的开放计算语言(OpenCL)将该算法移植到GPU上。新的SCL工具是Microsoft Excel的附加模块,它允许MCM计算电子表格中列出的不确定性预算。支持主要供应商英伟达、AMD和英特尔的GPU。不确定度计算时间可减少十倍以上。本文描述了这一新的软件工具的设计与实现。
Speeding up Monte Carlo Computations by Parallel Processing Using GPU for Uncertainty Evaluation in Accordance with GUM Supplement 2
The GUM Supplement 2 deals with measurement models with more than one output quantities, which may be mutually correlated. Such measurement models are common in electrical metrology where the measurand can be complex-valued quantities, such as S-parameters. The GUM Supplement 2 describes a Monte Carlo Method (MCM) for evaluating the output quantities, their standard uncertainties, the covariances between them and the coverage region. The Standards and Calibration Laboratory (SCL) has developed six years ago a software tool for evaluation of measurement models for complex-valued quantities in accordance with GUM Supplement 2. The SCL software tool was written in Visual C++ and Visual Basic for Application (VBA), with Microsoft Excel as frontend user interface. As MCM involves large number of repetitive computations, this old SCL software tool has long processing time especially for complicated measurement models such as coaxial airline. Nowadays many personal computers are equipped with Graphics Processing Unit (GPU) containing massive number of floating point cores. A high end GPU may have nearly 2000 cores while the main CPU normally has only up to 4 cores. As MCM is well suited to parallel processing, to speed up the uncertainty computation, SCL has ported the algorithm to GPU using the Open Computing Language (OpenCL) which was specially designed to support parallel computing. The new SCL tool is an add-on module to Microsoft Excel which allows uncertainty budget listed in spreadsheet table to be calculated by MCM. GPU from the major suppliers Nvidia, AMD and Intel are supported. The uncertainty computation time can be reduced by more than ten times. This paper describes the design and implementation of this new software tool.