Download presentation
Presentation is loading. Please wait.
Published byJulian Charles Modified over 8 years ago
1
Fabien Viale 1 Matlab & Scilab Applications to Finance Fabien Viale, Denis Caromel, et al. http://ProActive.ObjectWeb.org OASIS Team INRIA -- CNRS - I3S -- Univ. of Nice Sophia-Antipolis, IUF 1.Introduction / Principles 2.ProActive context 3.Scilab integration 4. Matlab integration 5. Application to Finance
2
Fabien Viale 2 Introduction
3
Fabien Viale 3 Introduction - Matlab Leading numerical computing environment Used by more than one million people Interactive mathematical shell => Matlab Language Expensive
4
Fabien Viale 4 Introduction - Scilab Open source alternative to Matlab Used by many industrial and research projects Interactive mathematical shell => similar syntax with Matlab, not 100% compatible. Free
5
Fabien Viale 5 Introduction - ProActive Open source middleware for the Grid Used by many industrial and research projects Powerful and standardized (ETSI) deployment framework Tools for the grid : Scheduler, Resource Manager, IC2D Monitoring, Timit
6
Fabien Viale 6 Introduction – State of the Art (quick) NameLicence type Parameters, return values, user function definition Type of jobsDeploymentNotes Matlab // computing toolbox ProprietaryAny matlabCoarse grained + MPI + Data // LSF, PBS, Torque, SGE Requires NFS for I/O Star PProprietaryAny matlabCoarse grained + Data // Requires NFS for I/O ParalizeOpen sourceNumeric/string arrays, built-in only Coarse grainedClient / ServerUses NFS for cummunication PLabOpen sourceAny matlabCoarse grainedOne level rsh or ssh dormant Only one //Scilab : Scilab PVM
7
Fabien Viale 7 Introduction - Motivations & Challenges Motivations : –Use grid infrastructure as resources for Matlab & Scilab –Allow users to remain in their familiar environment –Easily run Matlab & Scilab code in parallel –Seamless retrieval of results Challenges : –Heterogeneous environment –Matlab not open source –Non-extensive list of features in Scilab
8
Fabien Viale 8 ProActive context
9
Fabien Viale 9 Scheduler – Resource Manager Scheduler : controls user access ; task submission, results retrieval. Manages jobs pending queue. Manages job’s workflow. Resource Manager : Deploys and monitor resources (nodes) Make nodes available for the scheduler (with resource selection)
10
Fabien Viale 10 Jobs & tasks A job contains several tasks Tasks can have dependency relationships The Scheduler runs only one task per node
11
Fabien Viale 11 Introduction – Job definition
12
Fabien Viale 12 Scilab integration
13
Fabien Viale 13 Scilab integration - Principles Integration with the ProActive Scheduler Schedule workflow of Scilab tasks Transfer results between tasks
14
Fabien Viale 14 Scilab integration - Example
15
Fabien Viale 15 Matlab integration
16
Fabien Viale 16 Matlab integration - Principles Scilab extension functionalities Integration with the Matlab environment
17
Fabien Viale 17 How does it work ? Proxy Scheduler Resource Manager Cluster Desktop Nodes login deploy > PAsolve({arg1..argn}, @myfunc) Convert to textual / submit job Select resources Create engines Matlab Run tasks Receive results ans = [ 1 2.354 0 7 ]
18
Fabien Viale 18 Matlab integration - API PAconnect( ) PAsolve({arg1, … argn}, @function, [‘- debug’])
19
Fabien Viale 19 Introduction – State of the Art (quick) NameLicence type Parameters, return values, user function definition Type of jobsDeploymentNotes Matlab // computing toolbox ProprietaryAny matlabCoarse grained + MPI + Data // LSF, PBS, Torque, SGE Requires NFS for I/O Star PProprietaryAny matlabCoarse grained + Data // Requires NFS for I/O ParalizeOpen sourceNumeric/string arrays, built-in only Coarse grainedClient / ServerUses NFS for cummunication PLabOpen sourceAny matlabCoarse grainedOne level rsh or ssh, without password dormant ProActiveOpen sourceAny matlabCoarse grainedLSF, PBS, SGE, RSH, SSH, Bridges Requires NFS for I/O
20
Fabien Viale 20 Demonstration : application to finance Longstaff Schwarz method for American Put Option Pure matlab code (no financial toolkit)
21
Fabien Viale 21 Conclusion / Future Work For Scilab, integration with the ProActive Scheduler, useful for doing batch jobs –Lacks a complete integration with Scilab For Matlab, an easy to use/configure Parallel Matlab toolkit –Dependant on NFS => Automatic File Transfer –Automatic licencing control –Only for coarse-grained problems => SPMD extension –Blocks Matlab execution => Asynchronous PAsolve Questions ?
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.