Parallel Computing with Python on a Raspberry Pi Cluster || OpenMPI and mpi4py install

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ย. 2024
  • Today we are making a mini supercomputer! Not really, but sort-of, we are building a 4-node raspberry pi cluster. On this cluster we will be installing a package called OpenMPI which is a Message Passing Interface (MPI) critical for Parallel Computing. An MPI allows a complicated problem to be split into different processes and computed on separate processors, perhaps even on different nodes of a cluster.
    In this tutorial, we will go through how to install OpenMPI, Python packages from source, and how we can use OpenMPI with Python using a module called mpi4py. This will enable us to use all nodes on our cluster to approximate pi ~3.14… We will be following three tutorials from Garrett Mills on Medium for installation on SLURM and enabling parallel computing using openMPI.
    Building a raspberry pi cluster (Garrett Mills, 2018): / building-a-raspberry-p...
    ★ ★ QuantPy GitHub ★ ★
    Collection of resources used on QuantPy TH-cam channel. github.com/the...
    ★ ★ Discord Community ★ ★
    Join a small niche community of like-minded quants on discord. / discord
    ★ ★ Support our Patreon Community ★ ★
    Get access to Jupyter Notebooks that can run in the browser without downloading python.
    / quantpy
    ★ ★ ThetaData API ★ ★
    ThetaData's API provides both realtime and historical options data for end-of-day, and intraday trades and quotes. Use coupon 'QPY1' to receive 20% off on your first month.
    www.thetadata....
    ★ ★ Online Quant Tutorials ★ ★
    WEBSITE: quantpy.com.au
    ★ ★ Contact Us ★ ★
    EMAIL: pythonforquants@gmail.com
    Disclaimer: All ideas, opinions, recommendations and/or forecasts, expressed or implied in this content, are for informational and educational purposes only and should not be construed as financial product advice or an inducement or instruction to invest, trade, and/or speculate in the markets. Any action or refraining from action; investments, trades, and/or speculations made in light of the ideas, opinions, and/or forecasts, expressed or implied in this content, are committed at your own risk an consequence, financial or otherwise. As an affiliate of ThetaData, QuantPy Pty Ltd is compensated for any purchases made through the link provided in this description.

ความคิดเห็น • 8

  • @ehetlos
    @ehetlos ปีที่แล้ว

    The presantation of the topic is excellent from your side complying with educational and lecturer rules... congradulation ... I follow you

  • @jiuuchen1575
    @jiuuchen1575 2 ปีที่แล้ว +1

    Do you think "GNU parallel" could help? I mean write a python script with only one input, and use GNU parallel to run ,say 10 inputs

  • @Andres186000
    @Andres186000 2 ปีที่แล้ว +5

    You should check out the Julia programming language: it is natively much faster than python in many cases and is as easy to write. There are also a lot of packages for statistical inference and model building, and many of them are written in Julia rather than c, so you can modify them for your own needs better than packages like numpy in python.

    • @jamesr3368
      @jamesr3368 2 ปีที่แล้ว

      Are you using Julia right now? Never heard of it, what sort of things do you use it for?

    • @Andres186000
      @Andres186000 2 ปีที่แล้ว +1

      @@jamesr3368 I have been using Julia a lot lately. I use it for prototyping ideas like I might in python, but it has some optimizations out of the box that let me create "structs" which are like python types while still being able to run things very fast (on the same order of magnitude of speed as with numpy). The big advantage is that numpy doesn't let you create your own dtypes while Julia works as fast with the structs you make as with others. This feature makes it very nice to code things like physics simulations with a simple language that still runs very fast. There's an MIT lecture on TH-cam called "high performance in dynamic languages" that explains exactly how it is so fast. I'm currently using it to reproduce some of the things shown on this channel on stuff like efficient frontiers, but I also want to use it for physics simulations and dynamical inference and a handful of other ideas I have in the works.

  • @EliteBestGamers
    @EliteBestGamers 2 ปีที่แล้ว

    Hey ASX can you make some videos about quantitative analysis?

  • @vwsurfer8809
    @vwsurfer8809 ปีที่แล้ว +1

    Can you mine Bitcoin on it?