Nothing Special   »   [go: up one dir, main page]

skip to main content
10.1145/2830556.2830559acmconferencesArticle/Chapter ViewAbstractPublication PagesscConference Proceedingsconference-collections
research-article

Optimization strategies for portable code for Monte Carlo-based value-at-risk systems

Published: 15 November 2015 Publication History

Abstract

Value-at-risk (VaR) computations are one important basic element of risk analysis and management applications. On the one hand, risk management systems need to be flexible and maintainable, but on the other hand they require a very high computational power. In general, accelerators provide high speedups, but come with a limited flexibility. In this work, we investigate two approaches towards portable and fast code for VaR computations on heterogeneous platforms: operator tuning and the use of OpenCL. We show that operator tuning can save up one third of run time on CPU-based systems in the calibration step. For OpenCL, we present a detailed analysis of run time on CPU, GPU, and Xeon Phi, and evaluate its portability. We also find that the same code runs up to 12x faster in a VaR setting with an accelerator card being present, without any code changes required.

References

[1]
H. Albrecher, P. Mayer, W. Schoutens, and J. Tistaert. The Little Heston Trap. Technical Report 06, K.U.Leuven Section of Statistics, Sept. 2006. issue 05.
[2]
G. Box and M. Muller. A note on the generation of random normal deviates. The Annals of Mathematical Statistics, 29(2):610--611, 1958.
[3]
C. Brugger, C. de Schryver, N. Wehn, S. Omland, M. Hefter, K. Ritter, A. Kostiuk, and R. Korn. Mixed Precision Multilevel Monte Carlo on Hybrid Computing Systems. In Proceedings of the 2014 IEEE Conference on Computational Intelligence for Financial Engineering Economics (CIFEr), pages 215--222, Mar. 2014.
[4]
C. Brugger, G. Liu, C. de Schryver, and N. Wehn. A systematic Methodology for Analyzing Closed-Form Heston Pricer regarding their Accuracy and Runtime. In Proceedings of the 7th Workshop on High Performance Computational Finance, WHPCF '14, pages 9--16, Piscataway, NJ, USA, 2014. IEEE Press.
[5]
J. Danielsson. Financial Risk Forecasting. Wiley Finance Series. Wiley, 2011.
[6]
C. De Schryver, editor. FPGA Based Accelerators for Financial Applications. Springer International Publishing, 1st edition, July 2015. eBook ISBN 978-3-319-15407-7, Hardcover ISBN 978-3-319-15406-0.
[7]
S. Desmettre and R. Korn. 10 Computational Challenges in Finance. In C. De Schryver, editor, FPGA Based Accelerators for Financial Applications, chapter 1, pages 1--32. Springer, Switzerland, 2015.
[8]
M. F. Dixon, T. Bradley, J. Chong, and K. Keutzer. Monte Carlo-Based Financial Market Value-at-Risk Estimation on GPUs. In W.-M. W. Hwu, editor, GPU Computing Gems, volume 2, chapter 25, pages 337--353. Morgan Kaufmann, jade edition, 2012.
[9]
J. Dongarra and V. Eijkhout. Self-Adapting Numerical Software for Next Generation Applications. International Journal of High Performance Computing Applications, 17(2):125--131, May 2003.
[10]
M. Fatica and E. Phillips. Pricing American Options with Least Squares Monte Carlo on GPUs. In Proceedings of the 6th Workshop on High Performance Computational Finance (WHPCF '13). ACM, 2013.
[11]
B. R. Gaster, L. Howes, D. R. Kaeli, P. Mistry, and D. Schaa. Heterogeneous Computing with OpenCL. Morgan Kaufmannn, Waltham, 1 edition, 2012.
[12]
L. Howes and A. Munshi. The OpenCL Specification. https://www:khronos:org/registry/cl/specs/opencl-2:0:pdf, Jul 2015. last access 2015-10-13.
[13]
J. C. Hull. Options, Futures, And Other Derivatives. Pearson, 8th edition, 2012.
[14]
Intel. Monte Carlo Method for Stock Options Pricing Sample (OpenCL). https://software:intel:com/en-us/intel-opencl-code-builder-support/code-samples, 2013. last access 2015-10-13.
[15]
Intel. OpenCL Design and Programming Guide for the Intel Xeon Phi Coprocessor. https://software:intel:com/en-us/articles/opencl-design-and-programming-guide-for-the-intel-xeon-phi-coprocessor?language=ru, Jan 2014. last access 2015-10-13.
[16]
R. Korn, E. Korn, and G. Kroisandt. Monte Carlo Methods and Models in Finance and Insurance. Boca Raton, FL: CRC Press., 2010.
[17]
F. A. Longstaff and E. S. Schwartz. Valuing American options by simulation: A simple least-squares approach. Review of Financial studies, 14(1):113--147, 2001.
[18]
M. Matsumoto and T. Nishimura. Mersenne Twister: A 623-Dimensionally Equidistributed Uniform Pseudo-Random Number Generator. ACM Trans. Model. Comput. Simul., 8(1):3--30, Jan. 1998.
[19]
A. J. McNeil, R. Frey, and P. Embrechts. Quantitative Risk Management: Concepts, Techniques, and Tools. Princeton University Press, Princeton and Oxford, 2005.
[20]
J. P. Morgan and Reuters. RiskMetrics: RiskMetrics Technical Document. Technical Report 4th ed., New York, Dec 1996.
[21]
K. Morris and B. Kleinman. Intel Plus Altera. What Would it Mean? Electronic Engineering Journal, http://eejournal:com/archives/articles/20150331-intel/, Mar. 2015. last access 2015-10-13.
[22]
Nvidia Corporation. OpenCL Mersenne Twister Code Example. http://developer:nvidia:com/opencl-sdk-code-samples#oclMersenneTwister, Mar. 2012. last access 2015-10-13.
[23]
N. Singla, M. Hall, B. Shands, and R. D. Chamberlain. Financial Monte Carlo Simulation on Architecturally Diverse Systems. In Proceedings of the Workshop on High Performance Computational Finance (WHPCF) 2008, pages 1--7, Nov 2008.
[24]
N. Zhang, K. L. Man, and D. Xie. Computing Value at Risk in OpenCL on the Graphics Processing Unit. In Future Information Technology - II, volume 329 of Lecture Notes in Electrical Engineering, chapter 9, pages 71--78. Springer, Jan 2015.

Cited By

View all
  • (2016)Nested MC-Based Risk Measurement of Complex Portfolios: Acceleration and Energy EfficiencyRisks10.3390/risks40400364:4(36)Online publication date: 18-Oct-2016

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Conferences
WHPCF '15: Proceedings of the 8th Workshop on High Performance Computational Finance
November 2015
61 pages
ISBN:9781450340151
DOI:10.1145/2830556
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 15 November 2015

Permissions

Request permissions for this article.

Check for updates

Qualifiers

  • Research-article

Funding Sources

  • University of Kaiserslautern

Conference

SC15
Sponsor:

Acceptance Rates

WHPCF '15 Paper Acceptance Rate 8 of 10 submissions, 80%;
Overall Acceptance Rate 8 of 10 submissions, 80%

Upcoming Conference

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)3
  • Downloads (Last 6 weeks)0
Reflects downloads up to 23 Nov 2024

Other Metrics

Citations

Cited By

View all
  • (2016)Nested MC-Based Risk Measurement of Complex Portfolios: Acceleration and Energy EfficiencyRisks10.3390/risks40400364:4(36)Online publication date: 18-Oct-2016

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media