Code Monkey home page Code Monkey logo

binomialmodel's Introduction

Binomial Options Pricing Model

The goal of this reference design (tutorial) is to:

  • Demonstrate performance advantage of the Xilinx Alveo-based solution vs. the Intel® Xeon® CPU one and
  • Introduce various SDAccel analysis tools and optimization techniques allowing you to significantly improve design performance

by using a Binomial Options Pricing Model (further referenced as Binomial Model). The original description of the Binomial Model was obtained from Wikipedia and is presented on the following figure:

This original algorithm was rewritten in a C/C++ programming language by using single precision floating point operations and keeping the coding style as close as possible to the original version.

At the beginning, you will use the original C/C++ Binomial Model description to target both Xilinx Alveo card and x68 CPU. You will observe that a fully sequential execution of the application on the Alveo card outperforms the single threaded CPU implementation by the factor of 8.9x.

Then by using various optimization methods you will be able to increase Alveo based performance by the factor of 60.8x. This is represented in the following reduced summary table:

Design CPU (ms) Alveo (ms) Alveo Gain vs. CPU
Original 1 Thread: 9834.2 1106.7 8.9x
Optimized 12 Threads: 1289.7 18.2 70.9x

This tutorial was validated using

  • U200 Alveo card with 2019.1 XRT, deployment and development shells
  • SDAccel 2019.1 version

All results represented in this tutorial were generated by using DELL 8510 Workstation with the following characteristics:

  • CPU: Intel® Xeon® E5-1650 v3 @ 3.50 GHz
    Treads per core: 6
    Cores per socket: 2
  • RAM: 64 GB
  • OS: CentOS 7.4

Please refer to the BinomialModel.pdf document for detailed information regarding design setup, execution and results comparison.

binomialmodel's People

Contributors

mattsnow-amd avatar sergeisxilinx avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.