Skip to main content

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.

108 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
20 votes
0 answers
220 views

Status of all Evaluators?

Since I have 4 cores on my machine I typically have 4 notebooks open each with their own kernel evaluator. I'd like to construct a dynamic pane similar to the parallel kernels status window: But that ...
M.R.'s user avatar
  • 31.6k
17 votes
0 answers
4k views

Threads vs Cores: How many kernels need to launch in parallel Mathematica?

I have a dual-core intel machine. I would like to test how many parallel local kernels should be launch to get the optimized performance. Knowing that the HyperThreading technology of Intel could run ...
Nam Nguyen's user avatar
  • 1,761
9 votes
0 answers
211 views

The most bizarre kernel crash ever. Kernel crash in Integrate under simple different setups. Unable to find cause

Reported to WRI. CASE:4330461 V 12 on windows 10 64 bit. Note: This problem do not show up in V 11.3. Only in V12. For the last 2 hrs, I've been trying to zoom into why V12 kernel crash when ...
Nasser's user avatar
  • 147k
9 votes
0 answers
269 views

Why would killing the kernel defreeze/unhang the front end?

My Mathematica front end will freeze occasionally for unreproducible reasons. This seems mostly associated with long (> 1 hour) computations, although not exclusively. If I click on the Mathematica ...
Jess Riedel's user avatar
  • 1,525
8 votes
0 answers
485 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 ...
Lukas's user avatar
  • 2,712
7 votes
0 answers
511 views

How can I create a REPL for Mathematica in Sublime Text

I would like to be able to interact with Mathematica command line interface from within Sublime Text. Sublime Text has a package called Sublime REPL that provides an interface for different ...
Nima's user avatar
  • 71
7 votes
0 answers
236 views

Bug: Calling `SetSharedVariable` while kernels are running hangs them up/crashes them

Bug introduced in 9.0 or earlier and persisting through 11.0.1 or later Start a fresh kernel Quit, and maybe launch ...
masterxilo's user avatar
  • 5,739
6 votes
0 answers
147 views

ListLinePlot in Version 13.3.0 causes the kernel to stop

Bug introduced in 13.3.0 or earlier and persisting through 13.3.1 or later I have upgraded to version 13.3.0. I find that when I plot a data set using ListLinePlot ...
Hugh's user avatar
  • 16.6k
6 votes
0 answers
133 views

Why do some uses of PropertyList crash the kernel?

Bug introduced in 10.1.0 or earlier and fixed in 12.1.0 While looking at the question How to evaluate the "Domain" of an InterpolationObject? I noted that using ...
gwr's user avatar
  • 13.5k
6 votes
0 answers
143 views

Finish(Asynchronous)Dynamic[]

I have a question deriving from a recent topic Synchronizing Dynamics with EventActions. tl;dr; How to authoritatively explain the influence of ...
Kuba's user avatar
  • 137k
6 votes
0 answers
791 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: ...
physicien's user avatar
  • 407
6 votes
0 answers
211 views

In .NET/Link, how do I not open multiple kernels?

I'm writing an ASP.NET page intended for multiple users. On the backend we have datatypes that are primarily mathematical, and interact with Mathematica for string-to-double evaluations, among others....
Twiffy's user avatar
  • 369
5 votes
0 answers
202 views

How to allow one process to take advantage of all available cores while other processes run in parallel?

I have to run multiple tasks simultaneously: Data download from stock exchange during live market session and append it to a global variable. Process the data by taking the data from the front of the ...
csk 7's user avatar
  • 403
5 votes
0 answers
131 views

Using ASCII plots in Terminal in version 12.1

This question was asked before for version 12 but unfortunately the provided patch doesn't work anymore for version 12.1. Using Terminal` (ASCII plots) in Wolfram 12 I was trying to use the Terminal` ...
Philipp's user avatar
  • 726
5 votes
0 answers
98 views

Run computation in separate process and kill it after a time limit

I am looking for a solution to run a Mathematica calculation in a separate process (separate kernel) and cancel the computation after a given time. If it cannot be cancelled, then just kill that ...
Szabolcs's user avatar
  • 236k
5 votes
0 answers
2k views

ParallelTable::nopar: No parallel kernels available; proceeding with sequential evaluation

I am trying to use a the following code: ...
mattiav27's user avatar
  • 6,757
5 votes
0 answers
191 views

Mathematica Kernels in a remote machine via port forwarding and no public password

I would like to launching Mathematica kernels on a remote machine. Port forwarding is required to connect to this machine. I usually need to connect to a machine via ssh port forwarding and then in ...
Galuoises's user avatar
  • 533
5 votes
0 answers
510 views

Why FrontEnd`KernelExecute doesn't work in KeyEventTranslations.tr?

Which commands can you put in KeyEventTranslations.tr ? There is an extensive list of FrontEndTokens, but what else can you use? Why something like this doesn't ...
Vladimir's user avatar
  • 1,503
4 votes
0 answers
71 views

Area mapped over list of 2 polygons crashes kernel depending on order

I have a list of 2 Polygon objects (see below for the list polys and a visualization). They are all seem valid. Still, when I ...
Tom Verhoeff's user avatar
4 votes
0 answers
418 views

How to allocate more physical memory to Mathematica?

My MacBook Pro (2019) has 32 GB of memory, but when I work with a large array reaching 1 GB of storage, the Mathematica Kernel only gets a little more of 1 GB, but gets allocated a lot of virtual ...
hippo3773's user avatar
  • 1,246
4 votes
0 answers
75 views

On auto-limiting memory and other resource usage

I play fast and loose with my evaluations, so try to calculate something much too large at least once a day. Life has gotten a lot easier ever since I started setting: ...
Trev's user avatar
  • 763
4 votes
0 answers
107 views

Launching kernels... freezes

I'm running a Mathematica script on a remote machine (via ssh connection). I log on the machine and I execute math -script algorithm.m and this message appears ...
Luthien's user avatar
  • 185
4 votes
0 answers
471 views

`ParallelTable` pending the MathKernel after execution

I have done a ParallelTable computation in script mode. After execution, the output is fine and I've got all the data I needed. but the kernel seems pending, ...
an offer can't refuse's user avatar
4 votes
0 answers
344 views

Suspend computation so it can be resumed even after the PC is rebooted

Sometimes a computation takes a long time. But when I sleep in the night, I want to shutdown my PC. Next morning when I wake, I want to start Mathematica and resume the computation. If you are ...
user565739's user avatar
  • 1,129
4 votes
0 answers
1k views

Remote kernel shuts down after several seconds

I have Mathematica 9 installed on two Windows Server 2008 R2 machines. Now i want to try using one of them as a frontend with local kernels and the other one for remote kernels. OpenSSH 6.5 for ...
shda's user avatar
  • 263
4 votes
0 answers
197 views

MathKernel with `-noprompt` hangs indefinitely when converting simple TeX expression

If I enter MathKernel -noprompt -run 'ToExpression["1", TeXForm]; Exit[]' the kernel hangs, apparently while running TeX.exe ...
Mike's user avatar
  • 250
4 votes
0 answers
1k views

Runaway MathKernel!

I was running a simulation and everything went south (my fault, stupid coding error). So I quit the kernel. Everything was running very slowly, as if it were doing some kind of large calculation. ...
bill s's user avatar
  • 69.4k
3 votes
0 answers
79 views

Why global name context in 13.3 is not empty?

Today I tried 13.3.0 and immediately find that global name context again is not empty, i.e. ...
Acus's user avatar
  • 3,680
3 votes
0 answers
79 views

Maximum number of concurrent notebooks

I am running MMA v13.2 on Windows 10, x86. If I open two different notebooks, everything is fine. Try opening a third and it displays Of course, the operation fails because the software is already ...
Moo's user avatar
  • 3,388
3 votes
0 answers
268 views

Mathematica Kernels and CPU cores

I want to use an 8 kernel Mathematica 12.2 version. Does a core i7 CPU with 4 cores and 4 threads fully utilize the benefit of the 8 kernels or an 8-core CPU is needed?
Arash's user avatar
  • 31
3 votes
0 answers
126 views

How to use the old kernel in a newer version of MMa

I am used to the conveniences of MMA 11.3 such as: can undo some times, autocomplete codes, and so on, however I have to run some functions in the version 5.2. So I installed Mathematica V11.3 and V5....
likehust's user avatar
  • 693
3 votes
0 answers
87 views

Problem exporting vector graphics (PDF) in Mathematica Notebook Front-End using remote kernel on linux

I'm not being able to export vector graphics images (especially PDF) in a Mathematica Notebook Front-End in Windows 8.1 using a remote kernel on a Linux server. I can, however, export Raster Image ...
Eleteroboltz's user avatar
3 votes
0 answers
155 views

Launching Mathematica 11 kernel through double SSH

I'm trying to connect to a server in my university to do some computations. The problem is that I first need to login to one server through SSH and then from this one go to the "computation" server (I ...
Caims's user avatar
  • 432
3 votes
0 answers
166 views

Problems with Fedora 22 and Mathematica 10.2/10.3

I'm using Fedora 22 Linux distribution and since I switched to Mathematica 10.2 I'm experiencing some very weird behavior of the frontend. From time to time, the frontend would freenze for a few ...
vsht's user avatar
  • 3,527
3 votes
0 answers
272 views

Shared variables between notebooks using the same kernel not working in mathematica 10.1?

I am trying to access the variables over two Mathematica documents, this works fine when I use Mathematica 9 but when I attempt to do the same on 10.1 it doesn't work. I have set both notebooks to ...
Kevan's user avatar
  • 31
3 votes
0 answers
502 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 ...
Chen Stats Yu's user avatar
3 votes
0 answers
501 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. ...
heropup's user avatar
  • 2,122
3 votes
0 answers
629 views

Launching Remote Kernels takes a lot of time

I recently played around with establishing a remote kernel setup without using mathematica grid. To do this I use the LaunchKernels[] command and ...
Wizard's user avatar
  • 2,720
2 votes
0 answers
71 views

Changes in the kernel across versions

I was going through the Power programming book by David Wagner, and I tried: ...
Felipe's user avatar
  • 609
2 votes
0 answers
110 views

ParallelTable does not execute in parallel

I would like to construct a Table in Parallel in Mathematica. However, it only uses one Kernel for the calculation, the others run idle. My code looks like this (I will remove a big chunk of the ...
Julpe's user avatar
  • 21
2 votes
0 answers
43 views

How can I cap calculation speed?

Sorry if I wasn't able to find an existing answer! I'm trying out Mathematica, and was running through some sample problems at night. My roommate is sleeping, and my computer fan can get decently loud....
L Lord's user avatar
  • 21
2 votes
0 answers
111 views

Restart kernel after each evaluation in Table

I am trying to integrate a two-dimensional function purely numerically. For one coordinate the integrand can oscillate rapidly while for the other coordinate the integrand is not behaving in a special ...
Phenoxim's user avatar
2 votes
0 answers
36 views

Why kernel quits when trying to FullSimplify Piecewise with default Nothing value?

I found that kernel of In[1]=$Version (*"12.1.1 for Linux x86 (64-bit) (June 19, 2020)"*) quits when trying to FullSimplify a simple piecewise ...
Acus's user avatar
  • 3,680
2 votes
0 answers
228 views

Aborting any computation that takes too long

One of the biggest annoyances in Mathematica is that it will often hang up without any way to abort (i.e. Alt + . or other methods can't stop the computation). Is ...
Kvothe's user avatar
  • 4,591
2 votes
0 answers
373 views

Kernel crash after repeated use of NDSolve

I am trying to solve the Einstein-Klein-Gordon system (equations below) for different piecewise potentials but the kernel keeps crashing after repeated use of NDSolve. Apparently, everything works ...
Golan's user avatar
  • 21
2 votes
0 answers
39 views

Remote kernel lost internet connection

I'm running a calculation on a remote kernel and the internet connection is interrupted. When it recovered, all definitions were lost on the front end. Does the kernel on the remote machine ...
arax's user avatar
  • 1,831
2 votes
0 answers
163 views

How can I exit a specific kernel?

According to the documentation, the following are true: The Exit[] command "terminates a Wolfram Language kernel session." The ...
Shredderroy's user avatar
  • 5,271
2 votes
0 answers
151 views

Export cdf does not work in MathKernel command line

I am using Mathematica through command line MathKernel. I am not trying to draw any graphics in the console. But I should be able to export things a CDF. Why can't ...
Neel Basu's user avatar
  • 961
2 votes
0 answers
66 views

Any kernel monitor alternatives?

Sometimes the Parallel Kernel Status looks like this: Is there any way to visualize the kernels without using the built in tool?
M.R.'s user avatar
  • 31.6k
2 votes
0 answers
166 views

How to deal with MathLinkException in webMathematica

I'm using webMathematica, my license supports a maximum of two kernels running at the same time. Sometime an error occurs, I've seen three at least (from webMathematica.log): ...
flagg19's user avatar
  • 211