How to make LuaLaTeX multithreaded when --shell-escape is enabled? [duplicate]

How to make pdfLaTeX multithreaded when --shell-escape is enabled?

It works great. But when I change to LuaLaTeX there is still just 1 cpu active.

So is there a way to achive this with LuaLaTeX aswell?

marked as duplicate by Stefan Pinnow pgfplots StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Jan 9 at 20:14

• @HenriMenke, I don't think this is a duplicate because OP is asking (most likely) for multithreaded externalization of tikzpicture environments, which is possible, as is described in the answer to the linked question. – Stefan Pinnow Jan 8 at 21:39
• @davidgrills, could you elaborate a bit more when only 1 CPU is active? During the (normal) LuaLaTeX run or during processing the makefile? Could you please also add an MWE which is not working for you? Then we have a chance to either replicate your problem or it is fine for us ... – Stefan Pinnow Jan 8 at 21:42

Oh sorry guys, I found out, that I looked wrong and everything works fine.

I was looking for multithreading while make.

This works for me with

make -j 4 -f mwe.makefile


Here is the file:

\listfiles
\documentclass{scrbook}
\usepackage{pgfplots}
\usetikzlibrary{external}
\tikzexternalize[mode=list and make]
\begin{document}
\input{plot.tex}
\input{plot.tex}
\input{plot.tex}
\input{plot.tex}
\input{plot.tex}
\input{plot.tex}
\input{plot.tex}
\input{plot.tex}
\input{plot.tex}
\input{plot.tex}
\input{plot.tex}
\end{document}


The plot.tex is just a pgfplots plot with a lot of points.

\begin{tikzpicture}
\begin{axis}
table[row sep=crcr]{%
0.00158079699940572 0\\
142.183864004999    0\\

...

160.419964085   2523.5\\
160.420948376999    2526.5\\
};
\end{axis}
\end{tikzpicture}%

• That is what I would have expected. Do you agree that we either mark the question as duplicate or -- even better -- you simply delete the question? – Stefan Pinnow Jan 9 at 14:36
• I thought that someone else could find the post and see that it do work with lualatex, what is also a good information. – davidgrills Jan 9 at 18:40