Questions tagged [kernel]
The Kernel is the back-end application thread that does the actual evaluation of all non-graphical expressions. It can be accessed directly through the console but is more commonly working behind the scenes to power the Notebook Interface. Multiple Kernels may be run for parallel computation.
270
questions
1
vote
0answers
114 views
What's difference between MathKernel.exe and WolframKernel.exe? [duplicate]
Recently I installed Mathematica 10.1 and noticed two different files (they have the same length, but different hashes) in the installation folder: MathKernel.exe ...
3
votes
0answers
398 views
How many kernels to set based on CPU?
Looks like 4 kernels are enough?
My CPU is i7 4790K as given here.
Does it also depend on the tasks and the codes?
My understanding is that regardless what the benchmark says, I could always use 8 ...
5
votes
2answers
350 views
Running bits of code in a separate kernel
I am using Mathematica to generate 3D graphics frame for a video. The process goes as follows:
Loop over a counter i
Use Import...
2
votes
0answers
29 views
How to make lines not wrapping in text-mode Mathematica? [duplicate]
When running Mathematica from Unix command line, i.e. pure text mode, the lines wrap at about 70 pr 80 characters, creating lots of visual clutter. How do I set it so that any outputs will not wrap ...
1
vote
0answers
123 views
Calling a custom function in slave kernel process connected through mathlink [closed]
I am performing a small experiment to check if we can call/execute a custom package function in slave kernel launched from master using mathLink.
I have created a dummy application called "...
3
votes
1answer
376 views
How to construct a kernel from a function?
I would like to convolve an image with a mathematical function. I understand that I need to have the mathematical function in a matrix form. How can I build it?
Thanks
2
votes
0answers
215 views
How can I launch kernels in series using mathlink
I have written below code to launch n kernels connected to one another in series using mathlinks. Before you read the code allow me to be more precise what i want to achieve:
Source kernel(k1) will ...
19
votes
1answer
2k views
Quit the Kernel and start new session automatically
The question is how to quit the kernel, start a new session automatically, and to be able to run such procedure from e.g. Button.
This is especially useful when ...
4
votes
1answer
202 views
Notebook vs. Kernel: Kernel giving inaccurate results
I am running a code on Mathematica (on Mac OS X) that takes high values for some of the variables. In Notebook, I set the global precision using the following code (which is well documented!) at the ...
5
votes
2answers
234 views
How can I run a list of Tasks serially?
I have a list of ScheduledTask's to run in sequence one at a time. How can I set these to run in order so that the next one starts automatically after the previous one finishes?
1
vote
0answers
131 views
How can I rename the local kernel without causing issues?
I would like to name my kernels. However when I remove "Local" Mathematica becomes unstable, sometimes crashes sometimes doesn't initialize correctly.
Is there something special about the name "...
1
vote
2answers
235 views
Strange evaluation of an sum involving binomial coefficients
I stumbled upon this problem while playing with Mathematica 10. Can anyone help me explain the following behaviour?
I define a sum
...
0
votes
2answers
121 views
Parallel evaluation hangs before doing anything
[I use Mathematica 9.0.1.0 on OS X Yosemite 10.10.2.]
I am experiencing difficulty with parallel evaluation that I am finding extremely perplexing to troubleshoot.
I define the following function in ...
9
votes
1answer
203 views
TimeConstrained[Delete[Range[1],1]] causes kernel crash
Bug introduced in 10.0 and fixed in 11.1
Run these two samples of code here (AFTER SAVING YOUR CURRENT WORK):
...
0
votes
1answer
76 views
Saving a .m file generates internal error
Why does saving a .m file in version 10 generate this error? Nothing appears when I click on the link. But it happens everytime I save a file and then the file is renamed to untitled-n file.
...
5
votes
1answer
1k views
How to connect the front end of one raspberry pi with the kernel of another
I followed the instructions in this howto from wolfram, but I keep getting the error:
...
7
votes
1answer
226 views
Why can't I abort main evaluation from ScheduledTasks (Service Link)?
FrontEndExecute[FrontEndToken["EvaluatorAbort"]] is equivalent of the menu item: Evaluation >> Abort.
It works with ...
1
vote
0answers
147 views
How to make Show work in Mathematica 10 Kernel [closed]
Wolfram Research says it no longer supports JavaGraphics in Mathmatica 10. This is very bad for people who prefer the Kernel to the FrontEnd.
However, I am still able to get it to work.
Show failed....
5
votes
1answer
1k views
How to kill the kernel process from the command line without killing the frontend?
Sometimes the kernel hangs and I'd like to see if I can kill the math-kernel process without destroying my front-end session and losing the changes in my unsaved notebook!
0
votes
1answer
57 views
How to set a shared variable Power (a modified one)?
Unprotect[Power];
Power[0|0., 0|0.] = 1 ;
Protect[Power];
Table[0^0, {i, 5}]
No problem at all.
ParallelTable[0^0, {i, 5}]
...
8
votes
0answers
369 views
How to determine reason for kernel crash? -> Nelder Mead optimisation
I am making use of the Nelder Mead algorithm inside Mathematica's NMaximize to find a parameter set by solving the Schrodinger equation for a given system. (see ...
0
votes
0answers
192 views
Initiating another Kernel?
How can I start a separate kernel to do other work, while I have Mathematica working on a problem that requires lots of computation time?
I have a program that must be run for many hours, preventing ...
5
votes
1answer
206 views
How to understand the difference between Sqrt and Log after ClearAll them
I came across this post, here I change the last line of the code
Unprotect[Sqrt];
Sqrt[x_] = "blahblah";
Protect[Sqrt];
Sqrt[2]
"blahblah"
...
6
votes
1answer
1k views
Remote Kernel configuration works in v9 but not in v10
I have both v9 and v10 currently installed on my computer (Windows 7). For reasons that are not entirely clear, if I create a new remote kernel in one version, it is accessible to the other; however, ...
2
votes
0answers
97 views
Integrate with Subscript: does this crash your kernel too?
I encountered some strange behaviour running v10.0.1 on a Mac Pro, while working with Integrate and Subscript. Starting from a ...
10
votes
2answers
852 views
Difference between Evaluation ► Quit Kernel and Quit[]
What is the difference between Evaluation ► Quit Kernel and Quit[]?
Both seem to quit the kernel (and clearing all definitions)...
2
votes
0answers
84 views
$Epilog does not work when exit
The following code does work:
$Epilog := Print@1;
Quit[];
But if I close the document and exit WM or click QuitKernel, it does not work. Why?
4
votes
1answer
317 views
Trouble with Datasets in Version 10.0.1
Almost every morning, when I start my work, I observe the same problem as already mentioned here: Using Datasets in Mathematica 10.0 and here: Dataset: cannot reproduce a basic example. A bug?
I ...
5
votes
1answer
221 views
Changing MathKernel process priority on the startup
In the built-in Documentation there is an example how it is possible to change the priority of the MathKernel process using NetLink: ...
4
votes
1answer
135 views
what's the meaning of “-mathlink” as part of Arg for LinkLaunch?
LinkLaunch["MathKernel -mathlink"]
LinkLaunch["MathKernel"]
The both code line above can launch a MathKernel. What's the difference of them? what's the meaning of ...
1
vote
0answers
126 views
2
votes
1answer
143 views
Unprotect fails the first time, works on second pass [duplicate]
I am redefining some of the standard math functions. I know this is dangerous, so I am trying to be extra careful. (For instance, in the redefinitions, I make sure to only match a custom head)
The ...
2
votes
2answers
393 views
Change Temporary Directory
How to change the value of $TemporaryDirectory ? I need to change it because there is not enough space on the C drive and the calculation seems to stop after a while !
3
votes
1answer
981 views
Remote Kernel Setup: SSH fails with exit code 32512
I am having trouble with configuring parallel kernels. What I want to do is the following: run remote kernels on my home server to which I would like to connect from work using my laptop. Both ...
0
votes
1answer
4k views
How to use multiple core in evaluation?
Sorry if the question is very basic, that's because I am newbie in the Mathematica.
Assume I have a module that is supposed to do a very very long calculation
result = Table[0, {i, 100000000}]; f[...
11
votes
1answer
522 views
Kernel crashes when plotting $z=\sqrt{(x^2 + y^2)}^0$
Bug introduced in 7.0.1 or earlier and fixed in 10.0.1
I'm plotting a 3D function, which makes Mathematica V9 (running on Windows 7) crash all the time. Does this only happen for me or for somebody ...
2
votes
0answers
83 views
Some global variables are defined even at the start of a fresh session [duplicate]
In a fresh Mathematica session evaluating
Names["Global`*"]
doesn't give an empty list. The result is either
{rhs, z}
or ...
7
votes
2answers
760 views
Communication between local kernels
this is my first post but you have already helped me so many times that I have to start by saying thanks a lot!
I have a really long calculation to do, and I have used the Evaluation->Kernel ...
8
votes
1answer
282 views
Why am I getting a kernel crash on Chop?
Solve bug (see answer) introduced in 9.0 and persisting through 11.0.1 or later
First post, hopefully I figure out the formatting easily. Please forgive me if ...
4
votes
1answer
1k views
kernel Local crashes during the course of a For loop
I want to find the minimum of the function r[x,p] subject to the constraint w[x,p,t]==0 (t ...
36
votes
2answers
2k views
What information is sent to Wolfram Research when loading or working with Mathematica?
Recently I am told that information unknown to the user is sent to Wolfram Servers. Is there any truth behind it ? I was told that more than just an IP address of the user is sent to them and that ...
3
votes
1answer
143 views
Kernel quits on closing notebook
Mathematica quits (exits) when the single notebook I'm working on is closed. How to prevent this? Win7, v10 Mathematica
24
votes
2answers
1k views
Kernel crash after idle in version 10.0
Bug introduced in 10.0.0 and fixed in 10.0.2
In version 10.0, when I leave the Mathematica section idle for some time (of order an hour), the kernel quit automatically. The syntax highlighting is ...
5
votes
0answers
522 views
Death of parallel sub-kernels
EDIT : Finally, the new Mathematica 10.0 seems to fix it.
I have a little parallelization problem. I wrote a code to generate a quasicrystal by dynamical generation. Here the code:
...
1
vote
1answer
110 views
Keep batch-mode kernel alive
I made a small HTTP server using jlink that works when running with the frontend. Now I need to keep a stand-alone math kernel alive after all functions have evaluated for the server to stay up. All ...
4
votes
1answer
757 views
Parallel kernel and front end
I have a piece of code which looks like this:
ParallelTable[
Monitor[
Table[
<code here>
,{i,i1,i2];
,i];
]
so basically a ...
0
votes
1answer
434 views
How does Mathematica interpret a expression?
I'm a beginner to Mathematica.
I'd read several document. But I still have a problem.
For example, every expression in Mathematica
are of the form ...
8
votes
3answers
595 views
Keep kernel running for execution of scheduled task
How can I keep a kernel running until all scheduled tasks have completed? For example upon running the following script bazinga.m:
...
3
votes
0answers
491 views
Kernel quits upon evaluation of a limit
Using 9.0.1 on OS 10.9.3, I evaluated
Limit[(1 + t/Sqrt[n])^-n, n -> Infinity]
at the start of a session and it caused an error that made the kernel quit. ...
7
votes
1answer
352 views
CompilationTarget->“C” crashes the kernel
Major deviation from my original post
I realize that the long code I originally had was very discouraging to debug and did not attract any answers. So I have decided to revamp this question ...