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.

71 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
19
votes
0answers
187 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 ...
13
votes
0answers
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 ...
9
votes
0answers
208 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 ...
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 ...
7
votes
0answers
134 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 ...
7
votes
0answers
172 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 ...
6
votes
0answers
210 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 ...
6
votes
0answers
109 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 ...
6
votes
0answers
203 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....
5
votes
0answers
89 views

Why do some uses of PropertyList crash the kernel?

Bug introduced in 10.1.0 or earlier and persisting through 12.0.0 or later A support case with the identification [CASE:4222617] was created. While looking at the question How to evaluate the "...
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: ...
5
votes
0answers
420 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 ...
4
votes
0answers
41 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 ...
4
votes
0answers
233 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 ...
4
votes
0answers
961 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 ...
4
votes
0answers
183 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 ...
4
votes
0answers
991 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. ...
3
votes
0answers
63 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 ...
3
votes
0answers
129 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 ...
3
votes
0answers
295 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, ...
3
votes
0answers
161 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 ...
3
votes
0answers
178 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 ...
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 ...
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. ...
3
votes
0answers
528 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 ...
2
votes
0answers
49 views

Kernel crash when Saving/Get ing big files

I have been experiencing crashes in Mathematica 11.0.1 on a machine at work. I've tracked down the problem to when Mathematica is either using Save[fileName] or <...
2
votes
0answers
42 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 ...
2
votes
1answer
117 views

How do I launch a remote kernel on one Win 10 system from another Win 10 sys?

I have two win 10 computers and I have enabled the built-in windows 10 OpenSSH Client and OpenSSH serve in both of them. I can use one of the computers to run programs on another computer. I have also ...
2
votes
0answers
60 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 ...
2
votes
0answers
87 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 ...
2
votes
0answers
117 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 ...
2
votes
0answers
60 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?
2
votes
0answers
99 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): ...
2
votes
0answers
76 views

Long delays before showing the result in a notebook

I'm new to Mathematica. I have Version 10.3.0 running under Windows 10, 64-bit. If I open the 10.3.0 kernel and type 2 + 2 Shift Return I get an immediate answer. If I open the main program and ...
2
votes
0answers
145 views

Kernel crash during numerical integral related to internet connection and WolframAutoUpdate

I am having silent kernel crashes whenever I attempt to evaluate a difficult 2D numerical integral. It is not consistently repeatable, in the sense that sometimes the same integral will evaluate ...
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 ...
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 ...
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?
1
vote
0answers
47 views

why ??x and ??args yields different answers in 11.3

In fresh kernel Mathematica 11.3 (Linux) asking for args (similarly for dims) I obtain ??args (*Global`args*) As far as I remember similar problem we had ...
1
vote
0answers
27 views

Kernel runs continously with Manipulate Block inside Package, not notebook

I recently moved an Manipulate block from a notebook to a package (.m file). The original manipulate called functions from the package in the form of Package`f(x) and was used in the Manipulate. The ...
1
vote
0answers
67 views

How to use two or more kernels in the same notebook frontend?

Is there a way to connect the notebook front end to both kernels, 11.3 and 12.0 at the same time. So I can run certain commands in older version. It would be nice to have a way to run certain cells ...
1
vote
0answers
40 views

How badly does switching kernel slow down or completely stop Mathematica running jobs?

I have a question on how to run two or more Mathematica jobs on one laptop. For example, I use a local kernel to run a job. Then I open another job and choose Kernel configuration option and choose ...
1
vote
0answers
61 views

Number of processes in text (batch) mode

I have tex mode access to server with Mathematica the math sesion parameters are: ...
1
vote
0answers
90 views

How to install only Wolfram Kernel and register to a MathLM Server?

I have access to a MathLM server and the Mathematica 11.3 install files. Is there a command line option for the install that will only install the Wolfram Kernel and not the Mathematica front-end? ...
1
vote
0answers
95 views

Why is my Mathematica notebook resetting all my previous computations after some hours?

I am using Mathematica 11.1. This morning I started some calculations in the hope that when I come back from work, they will be finished and I can get on with the rest of my project. Indeed, when I ...
1
vote
0answers
114 views

How do I check how many (sub)kernels my program is using?

I am running a code that uses up to 60% of CPU on my quad-core machine, suggesting that it is using some subkernel, introducing overhead in the computations and slowing down the program which is not ...
1
vote
0answers
248 views

Kernel shutting down automatically with no error

What are the possible reasons why a kernel exits and the computation simply stops without printing out an error message? In case the specific scenario is required, it is as follows but perhaps the ...
1
vote
0answers
53 views

Access to a specific subkernel

Say I want to distribute a task in the following way on the available subkernels: ...
1
vote
0answers
103 views

keep Mathematica session alive on ssh

I have to access to a server via ssh and open a graphical session, using XQuartz, for using Mathematica. Is it possible to let Mathematica run even when I disconnect to the server? I could add ...
1
vote
0answers
120 views

Kernel compilation failed

I'm trying the cuda in mathematica 11.1. The cuda functions seems to work fine. The CUDAFluidDynamics[], runs the example simulation, although I am not certain if it runs on the device or the host. ...