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


Groups > comp.soft-sys.math.mathematica > #11673

Re: LaunchKernels[] and Java

From David Bailey <dave@removedbailey.co.uk>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: LaunchKernels[] and Java
Date 2012-09-08 07:48 +0000
Message-ID <k2et7q$km5$1@smc.vnet.net> (permalink)
References <k2cd6d$f5s$1@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


On 07/09/2012 10:02, tredmond59@gmail.com wrote:
> I have a machine with 8 cores and I have been getting amazing results with the parallel computation.  LaunchKernels[] gives me 4 kernels and many of my problems actually are probably running something like four times as fast.  This is really awesome!
>
> But I am wondering if I can get Java to connect to all of these kernels.  I have some java code that I invoke from the mathematica user interface. This program will often run overnight or even for more than a day. I figured if Java will talk to all these kernels then I could divide the problem and it would run much faster.  (Conceptually the problem splits up nicely.)
>
> Does anyone know how to do this?
>
> -Timothy
>
I suspect the 4 kernel limit may be determined by your license.

I am pretty sure if you use J/Link in 4 kernels, you will get 4 copies 
of Java running.

I'd communicate to Java from one kernel, but then use threads within the 
Java to spread the load across the available CPUs.

David Bailey
http://www.dbaileyconsultancy.co.uk



Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

LaunchKernels[] and Java tredmond59@gmail.com - 2012-09-07 09:02 +0000
  Re: LaunchKernels[] and Java David Bailey <dave@removedbailey.co.uk> - 2012-09-08 07:48 +0000
    Re: LaunchKernels[] and Java tredmond59@gmail.com - 2012-09-12 07:29 +0000
  Re: LaunchKernels[] and Java David Reiss <dbreiss@gmail.com> - 2012-09-10 08:13 +0000
    Re: LaunchKernels[] and Java tredmond59@gmail.com - 2012-09-12 07:03 +0000

csiph-web