Context
I am interested in doing parallel computation on a linux machine.
Odd behaviour
When I chose explicitly the number of kernels
(~)> math
Mathematica 12.0.0 Kernel for Linux x86 (64-bit)
Copyright 1988-2019 Wolfram Research, Inc.
In[1]:= LaunchKernels[8]
(* {KernelObject[1, local], KernelObject[2, local], …. , KernelObject[8, local]} *)
Whereas if I don't specify the number of Kernels
In[1]:= LaunchKernels[]
I get
wolfram: Command not found.
wolfram: Command not found.
...
wolfram: Command not found.
Question
Could anyone please reproduce what seems to be a (admittedly minor) Bug?
This seems to hold true for Mathematica 10.3 and 12.
Note that If one does not bother explicitly launching the kernels it does not work either
(~)> math
Mathematica 12.0.0 Kernel for Linux x86 (64-bit)
Copyright 1988-2019 Wolfram Research, Inc.
In[1]:= ParallelTable[Pause[1],{4}]//AbsoluteTiming
Launching kernels...
I get again
wolfram: Command not found.
wolfram: Command not found.
Finally note that on a mac it works as it should
In[1]:= ParallelTable[Pause[1], {4}] // AbsoluteTiming
Out[1]= {2.78291,{Null,Null,Null,Null}}
$ConfiguredKernels
(or$ConfiguredKernels // InputForm
if needed). Kernel configuration can be done through the preferences dialog, so you may have set it even if you never used$ConfiguredKernel
. $\endgroup$