MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: LaunchKernels[] and Java

  • To: mathgroup at smc.vnet.net
  • Subject: [mg128000] Re: LaunchKernels[] and Java
  • From: David Bailey <dave at removedbailey.co.uk>
  • Date: Sat, 8 Sep 2012 03:07:48 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <k2cd6d$f5s$1@smc.vnet.net>

On 07/09/2012 10:02, tredmond59 at 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






  • Prev by Date: Re: Landau letter, Re: Mathematica as a New Approach...
  • Next by Date: Sum command
  • Previous by thread: LaunchKernels[] and Java
  • Next by thread: Re: LaunchKernels[] and Java