Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'arrays': 0.09; 'function:': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'url:github': 0.09; 'python': 0.11; 'def': 0.12; 'wrote': 0.14; '"in': 0.16; 'above)': 0.16; 'charles': 0.16; 'computes': 0.16; 'happily': 0.16; 'ie.': 0.16; 'iterates': 0.16; 'kern': 0.16; 'loops': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:cloud': 0.16; 'underlying': 0.16; 'url:py': 0.16; 'y):': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'tests': 0.22; 'header:User-Agent:1': 0.23; 'interpret': 0.24; 'fairly': 0.24; 'fine': 0.24; 'together.': 0.24; 'environment': 0.24; "i've": 0.25; 'options': 0.25; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'function': 0.29; 'robert': 0.30; 'code': 0.31; 'run': 0.32; 'another': 0.32; '(i.e.': 0.33; 'subject:the': 0.34; 'could': 0.34; "can't": 0.35; 'skip:s 30': 0.35; 'but': 0.35; 'really': 0.36; 'library.': 0.36; 'challenging': 0.38; 'e.g.': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'results.': 0.60; 'url:%20': 0.61; 'our': 0.64; 'world': 0.66; 'believe': 0.68; 'goal': 0.75; 'calculations': 0.84; 'eco': 0.84; 'terrible': 0.84; 'url:master': 0.84; 'received:86': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Robert Kern Subject: Re: Parallel python in the cloud Date: Sat, 24 May 2014 10:57:21 +0100 References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: cpc12-cmbg17-2-0-cust443.5-4.cable.virginm.net User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 37 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1400925458 news.xs4all.nl 2905 [2001:888:2000:d::a6]:36084 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:71960 On 2014-05-24 07:46, Charles Gagnon wrote: > We were happily using PiCloud for several long calculations and we very happy with with it. With their realtime cores, we could take really large calculations set and run through fairly quickly. > > Now that PiCloud is going away, we ran a few tests on Mutlyvac but so far, we are struggling to accomplish the same thing we had on PiCloud. > > I have several "pieces" of my puzzle but can't seem to be able to put it together. I've seen and tried StarCluster and also various parallel python options but all options seem challenging to put together. > > The goal is to mimic PiCloud, ie. loop through a function: > > def some_NP_func(x, y): > ... > return z > > some_cloud.call(some_NP_func, a1, a2) > > Which computes the function on the cloud. We use this often in for loops with arrays of arguments. The other scenario is: > > some_cloud.map(some_NP_intense_func, [...], [...]) > > Which iterates through and returns results. We need to run a lot of this in batch from a scheduler so I always try to avoid interactive environment (how does iPython parallel work in batch?). IPython parallel works just fine "in batch". As far as your client code (i.e. what you wrote above) is concerned, it's just another library. E.g. https://github.com/ipython/ipython/blob/master/examples/Parallel%20Computing/nwmerge.py https://github.com/ipython/ipython/blob/master/examples/Parallel%20Computing/itermapresult.py etc. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco