Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #86510

Re: Parallelization of Python on GPU?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <jason.swails@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status UNSURE 0.333
X-Spam-Level ***
X-Spam-Evidence '*H*': 0.35; '*S*': 0.01; 'subject:Python': 0.06; 'received:198': 0.07; 'e.g.,': 0.09; 'mess': 0.09; "wouldn't": 0.14; '(today': 0.16; 'desktop.': 0.16; 'different,': 0.16; 'hardware.': 0.16; 'personally,': 0.16; 'throughput': 0.16; ':-)': 0.16; 'student': 0.16; 'wrote:': 0.18; "hasn't": 0.19; 'numerical': 0.19; 'thu,': 0.19; 'url:article': 0.19; 'putting': 0.22; "aren't": 0.24; "i've": 0.25; 'possibly': 0.26; 'header:In- Reply-To:1': 0.27; 'point': 0.28; 'leave': 0.29; '2009': 0.29; 'said,': 0.30; 'see,': 0.30; 'work.': 0.31; 'went': 0.31; 'software,': 0.31; '(possibly': 0.31; '2008,': 0.31; "d'aprano": 0.31; 'faster,': 0.31; 'steven': 0.31; 'run': 0.32; 'running': 0.33; 'maybe': 0.34; "i'd": 0.34; "can't": 0.35; 'anywhere': 0.35; 'computing': 0.35; 'hundreds': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'data,': 0.36; 'transition': 0.36; "didn't": 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'two': 0.37; 'performance': 0.37; 'message- id:@gmail.com': 0.38; 'jason': 0.38; 'to:addr:python-list': 0.38; 'that,': 0.38; 'to:addr:python.org': 0.39; 'university': 0.39; 'even': 0.60; 'results.': 0.60; 'numbers': 0.61; 'success': 0.61; 'john': 0.61; 'high': 0.63; 'myself': 0.63; 'our': 0.64; 'more': 0.64; 'different': 0.65; '(that': 0.65; 'studies': 0.65; 'series': 0.66; 'here': 0.66; 'benefit': 0.68; 'improvements': 0.68; 'introduction': 0.68; 'results': 0.69; 'money': 0.72; 'repeat': 0.74; 'future,': 0.83; 'calculations': 0.84; 'computing.': 0.84; 'cpu.': 0.84; 'embracing': 0.84; 'everything,': 0.84; 'gains': 0.84; 'importance.': 0.84; 'improvement': 0.84; 'investigated': 0.84; 'manufactured': 0.84; 'maths': 0.84; 'refusing': 0.84; 'simulations': 0.84; 'severe': 0.91; 'watched': 0.91; 'dirty': 0.93; 'serious': 0.97
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:date:in-reply-to:references:content-type :mime-version:content-transfer-encoding; bh=a28TrgC23plV+SV5cyZTbaC1nm+AUrUno+OhFwaCmV4=; b=x47oKZkdCBS+4WnxRbgiMmc8RBQOoOZ0Lzs4+BT9hJyDzknaWog6KbDBAEsh1Bb26V O+uML5uHDiGRzvaHvMKDfGAC7FEYhhTcOlcsZrDAgGVY6qMslpyVqFq7MBn539e3a+nK 7BLT5vPP6ermu3X9mDCnMQQHsPm1KXevnLtFVwnKlqCQjJMCDyQE1BodJUGfE7ERABqQ rqMsJJmQzRpQC48ALkBKSa8kbtc08O42O9noHNlJU/1sbgt+AnyWpbY3JhkTKOsKJjJA xg8s1sHHcHXNy2JBhjtI+TkBVLfOtzky/niEx57ZCGnxtbTew85SCE2NInRAnOc4fw1C hATQ==
X-Received by 10.140.151.65 with SMTP id 62mr18525584qhx.73.1424963155128; Thu, 26 Feb 2015 07:05:55 -0800 (PST)
Subject Re: Parallelization of Python on GPU?
From Jason Swails <jason.swails@gmail.com>
To python-list@python.org
Date Thu, 26 Feb 2015 10:06:06 -0500
In-Reply-To <54ee8ce2$0$11109$c3e8da3@news.astraweb.com>
References <82642f3a-49e8-4982-b135-66ffc04d67d9@googlegroups.com> <54ee8ce2$0$11109$c3e8da3@news.astraweb.com>
Content-Type text/plain; charset="UTF-8"
X-Mailer Evolution 3.12.8
Mime-Version 1.0
Content-Transfer-Encoding 7bit
X-Mailman-Approved-At Thu, 26 Feb 2015 17:10:59 +0100
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.19262.1424967059.18130.python-list@python.org> (permalink)
Lines 61
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1424967059 news.xs4all.nl 2902 [2001:888:2000:d::a6]:47974
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:86510

Show key headers only | View raw


On Thu, 2015-02-26 at 14:02 +1100, Steven D'Aprano wrote:
> John Ladasky wrote:
> 
> 
> > What I would REALLY like to do is to take advantage of my GPU.
> 
> I can't help you with that, but I would like to point out that GPUs 
> typically don't support IEE-754 maths, which means that while they are 
> likely significantly faster, they're also likely significantly less 
> accurate. Any any two different brands/models of GPU are likely to give 
> different results. (Possibly not *very* different, but considering the mess 
> that floating point maths was prior to IEEE-754, possibly *very* different.)

This hasn't been true in NVidia GPUs manufactured since ca. 2008.

> Personally, I wouldn't trust GPU floating point for serious work. Maybe for 
> quick and dirty exploration of the data, but I'd then want to repeat any 
> calculations using the main CPU before using the numbers anywhere :-)

There is a *huge* dash toward GPU computing in the scientific computing
sector.  Since I started as a graduate student in computational
chemistry/physics in 2008, I watched as state-of-the-art supercomputers
running tens of thousands to hundreds of thousands of cores were
overtaken in performance by a $500 GPU (today the GTX 780 or 980) you
can put in a desktop.  I went from running all of my calculations on a
CPU cluster in 2009 to running 90% of my calculations on a GPU by the
time I graduated in 2013... and for people without as ready access to
supercomputers as myself the move was even more pronounced.

This work is very serious, and numerical precision is typically of
immense importance.  See, e.g.,
http://www.sciencedirect.com/science/article/pii/S0010465512003098 and
http://pubs.acs.org/doi/abs/10.1021/ct400314y

In our software, we can run simulations on a GPU or a CPU and the
results are *literally* indistinguishable.  The transition to GPUs was
accompanied by a series of studies that investigated precisely your
concerns... we would never have started using GPUs if we didn't trust
GPU numbers as much as we did from the CPU.

And NVidia is embracing this revolution (obviously) -- they are putting
a lot of time, effort, and money into ensuring the success of GPU high
performance computing.  It is here to stay in the immediate future, and
refusing to use the technology will leave those that *could* benefit
from it at a severe disadvantage. (That said, GPUs aren't good at
everything, and CPUs are also here to stay.)

And GPU performance gains are outpacing CPU performance gains -- I've
seen about two orders of magnitude improvement in computational
throughput over the past 6 years through the introduction of GPU
computing and improvements in GPU hardware.

All the best,
Jason

-- 
Jason M. Swails
BioMaPS,
Rutgers University
Postdoctoral Researcher

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Parallelization of Python on GPU? John Ladasky <john_ladasky@sbcglobal.net> - 2015-02-25 18:35 -0800
  Re: Parallelization of Python on GPU? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-02-26 14:02 +1100
    Re: Parallelization of Python on GPU? John Ladasky <john_ladasky@sbcglobal.net> - 2015-02-25 20:01 -0800
    Re: Parallelization of Python on GPU? Jason Swails <jason.swails@gmail.com> - 2015-02-26 10:06 -0500
    Re: Parallelization of Python on GPU? Sturla Molden <sturla.molden@gmail.com> - 2015-02-26 16:53 +0000
    Re: Parallelization of Python on GPU? Terry Reedy <tjreedy@udel.edu> - 2015-02-26 12:16 -0500
    Re: Parallelization of Python on GPU? Jason Swails <jason.swails@gmail.com> - 2015-02-26 12:48 -0500
    Re: Parallelization of Python on GPU? Sturla Molden <sturla.molden@gmail.com> - 2015-02-26 22:10 +0100
    Re: Parallelization of Python on GPU? Jason Swails <jason.swails@gmail.com> - 2015-02-26 17:28 -0500
  Re: Parallelization of Python on GPU? Ethan Furman <ethan@stoneleaf.us> - 2015-02-25 19:03 -0800
  Re: Parallelization of Python on GPU? Ethan Furman <ethan@stoneleaf.us> - 2015-02-25 19:05 -0800
    Re: Parallelization of Python on GPU? John Ladasky <john_ladasky@sbcglobal.net> - 2015-02-25 21:53 -0800
      Re: Parallelization of Python on GPU? Christian Gollwitzer <auriocus@gmx.de> - 2015-02-27 19:55 +0100
  Re: Parallelization of Python on GPU? Jason Swails <jason.swails@gmail.com> - 2015-02-26 10:27 -0500
  Re: Parallelization of Python on GPU? Sturla Molden <sturla.molden@gmail.com> - 2015-02-26 16:40 +0000
    Re: Parallelization of Python on GPU? John Ladasky <john_ladasky@sbcglobal.net> - 2015-02-26 09:34 -0800
      Re: Parallelization of Python on GPU? Sturla Molden <sturla.molden@gmail.com> - 2015-02-26 21:54 +0100

csiph-web