comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Generating N random numbers that add to a TOTAL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Generating N random numbers that add to a TOTAL [message #89253 is a reply to message #89252] Fri, 08 August 2014 15:00 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 8/8/14, 1:32 PM, rryan@stsci.edu wrote:
> Hi Mike, I might be interested in GPULib. I see it's quite pricey
> (at least for my budget) and Tech-X offers a free trial. But before
> I go through the trouble of even getting the free trial, what else
> can you tell me about GPULib?

A couple of resources:

* documentation for GPULib routines:
http://www.txcorp.com/images/docs/gpulib/1.6.2/html/index.ht ml

* I write about GPULib on my website occasionally, see:

michaelgalloy.com/index.php?s=gpulib&submit=Search

* The official blog is at hgpulib.blogspot.com

> Specifically, I was wondering about what hardware/software do I need
> to use GPULib? I use Mac OSX 10.8.5 and IDL 8.2.3 at present, and
> that sounded sufficient. But anything else I should be aware of?
> Such as GPU cards, RAM, etc.?

Currently, you absolutely need to have CUDA-enabled GPU (any modern
NVIDIA graphics card). The better the card, the better the performance.
Most laptop GPUs can get 2-5x speedup on our demos, while top-end GPUs
can get 40x or better speedups.

For software, IDL 8.2 and CUDA 5.0 on OS X (10.7+), Windows (7, Server
2008), or Linux (CentOS5, CentOS6, RedHat Enterprise Linux 5, Fedora
16). If your software doesn't quite match up, I can usually make a
custom build for you.

> Can you give any examples of the code usage? Like what will my IDL
> code now look like?

It could be as simple as:

gpuinit
dx = gpuFindgen(10)
dy = gpuFindgen(10)
dz = dx + dy

That last line could also be done this way:

dz = gpuFltarr(10)
dz = gpuAdd(dx, dy, LHS=dz)

which can be more efficient in certain situations.

There are basically a bunch of routines with the "gpu" prefix that have
a similar interface as the normal IDL library routine, but take GPU
variables instead of normal ones. See the API documentation link I gave
above for a list of routines available.

There are also several demos in the trial that you can see speedups and
browse example code.

> What about if I need to port the code to another workstation?

Should be fine (no modification) as long as the new workstation also
meets the requirements above.

> Anything else a GPU newbie (but seasoned IDLer) should know or should
> ask?

Not that I can think of, but feel free to ask if you have any more
questions!

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Research Mathematician
Tech-X Corporation
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to find the confidence interval of a variable data at 95% or 66%?
Next Topic: get_lun & free_lun

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 02:25:36 PDT 2025

Total time taken to generate the page: 0.00440 seconds