Skip to content

Enable parallel runs of pdflatex

Akira Yokosawa perfbook 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 3 repliesIn review
  2. v21 patch 2 repliesSuperseded
  3. v11 patch 2 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Replace \include{} with \input{} for parallel pdflatex runsappendix/appendix.tex perfbook-lt.tex+6 -60 replies
2/4Makefile: Fix issues WRT parallel runs of pdflatexMakefile+7 -50 replies
3/4Restore Makefile as of 2022.01.25Makefile.2022.01.25+608 -00 replies
4/4Add script for parallel-pdflatex-run regression testutilities/parallel-latex-regress.sh+75 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [RFT PATCH -perfbook v3 v3 0/4] Enable parallel runs of pdflatex

Hi Paul,

I said earlier in v2's thread:

Quoted 8 lines

This patch changes both LaTeX code and Makefile. SyncTeX database is affected by LaTeX code change because it is a collection of "LaTeX code (file:line:char) <-> coordinates in PDF".
So we can't see if changes in Makefile affect PDF or not.

I'll split this patch into a set of "preparatory LaTeX change" and "Makefile update" patches.

I did break up the patch (1/4 and 2/4), but it did not work as I had expected.
Because of the Git-commit info in the footer area, SyncTeX database can't be identical when you move to another commit.

So, I restored the Makefile as of 2022.01.25 for reference (3/4) and added a script to collect and compare SyncTeX databases from reference, sequential, and parallel runs of pdflatex (4/4).

Please give it a try.

You can override defaults of TARGETS (2c 1c eb) and JOBS (4) by saying, e.g.:

TARGETS="2c 1c eb nq 1cnq ebnq" JOBS=8 ./utilities/parallel-latex-regress.sh

It will take quite a while for sequential runs of pdflatex with the synctex option enabled. So I'd suggest starting from a short list.

In my tests so far, no mismatch was detected.

Thanks, Akira

--
Akira Yokosawa (4):
Replace \include{} with \input{} for parallel pdflatex runs
Makefile: Fix issues WRT parallel runs of pdflatex Restore Makefile as of 2022.01.25
Add script for parallel-pdflatex-run regression test

 Makefile                            |  12 +-
 Makefile.2022.01.25                 | 608 ++++++++++++++++++++++++++++
 appendix/appendix.tex               |   8 +-
 perfbook-lt.tex                     |   4 +-
 utilities/parallel-latex-regress.sh |  75 ++++
 5 files changed, 696 insertions(+), 11 deletions(-)
 create mode 100644 Makefile.2022.01.25
 create mode 100755 utilities/parallel-latex-regress.sh

base-commit: f24ccfbd345eab8a70d6c08e71c84f18df46a3a1

Signature · 1 line
2.17.1