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

Home » Public Forums » archive » Re: IDL with multiple processors
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: IDL with multiple processors [message #13712 is a reply to message #13701] Fri, 04 December 1998 00:00 Go to previous message
korpela is currently offline  korpela
Messages: 59
Registered: September 1993
Member
In article <3667038C.1474744F@lanl.gov>,
David M. Schmidt <dschmidt@lanl.gov> wrote:
> We recently tested the speed of a non-graphical, numerical IDL code run
> on two different Linux systems. The system with 2 350 MHz processors
> and SDRAM was about the same speed or a bit slower than the system with
> 1 233 MHz processor and EDORAM.

IDL is pretty much single threaded. If you've got two processors, it's up
to you to use 'em. You'd be suprised what you can do if you try.....
This works under sunos... (you need to write your own kill proceedure,
though. That's not too hard.)

pid=call_external("/usr/lib/libc.so.1.9","_fork") ; your libc name may vary
if pid then begin
do some processing
kill,pid
endif else begin
do some other processing
dummy=call_external("/usr/lib/libc.so.1.9","_wait")
endelse

You can even use the "varray" package at my web site for interprocess
communication. (Otherwise changes to variables in one process do not
affect the other process.)

I don't suppose RSI would be willing to add fork, kill, and wait to the
language. :) It's also probably illegal to use fork on a machine with
a floating license.

Eric


--
Eric Korpela | An object at rest can never be
korpela@ssl.berkeley.edu | stopped.
<a href="http://sag-www.ssl.berkeley.edu/~korpela">Click for home page.</a>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Message command output sent to Journal file?
Next Topic: Re: How to kill a procedure?

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

Current Time: Sat Oct 11 10:14:18 PDT 2025

Total time taken to generate the page: 0.32130 seconds