From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.devel Subject: Re: Parallel native compilation Date: Tue, 08 Nov 2022 12:35:43 +0000 Message-ID: References: <87bkqxf1ij.fsf@tethera.net> <877d1i9h7k.fsf@gnus.org> <83edvqyr3q.fsf@gnu.org> <874jwl8e4p.fsf@gnus.org> <87pmf64beo.fsf@gnus.org> <87h70i4a46.fsf@gnus.org> <87czb648r9.fsf@gnus.org> <874jwi47l6.fsf@gnus.org> <87zgea2sgv.fsf@gnus.org> <83leop528p.fsf@gnu.org> <877d09u2rb.fsf@web.de> <87k048pcka.fsf@gmail.com> <878rkmvvrb.fsf@thaodan.de> <87tu39u0xm.fsf_-_@thaodan.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7763"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: "Dr. Arne Babenhauserheide" , Eli Zaretskii , Juanma Barranquero , larsi@gnus.org, rlb@defaultvalue.org, monnier@iro.umontreal.ca, david@tethera.net, emacs-devel@gnu.org To: =?utf-8?Q?Bj=C3=B6rn?= Bidar Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 08 13:36:54 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1osNqY-0001n0-TB for ged-emacs-devel@m.gmane-mx.org; Tue, 08 Nov 2022 13:36:54 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osNpr-0006WT-4j; Tue, 08 Nov 2022 07:36:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osNpo-0006Vn-Ft for emacs-devel@gnu.org; Tue, 08 Nov 2022 07:36:08 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osNpb-0004z5-6I; Tue, 08 Nov 2022 07:36:08 -0500 Original-Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 2A8CZgJu028545 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Tue, 8 Nov 2022 12:35:42 GMT In-Reply-To: <87tu39u0xm.fsf_-_@thaodan.de> (=?utf-8?Q?=22Bj=C3=B6rn?= Bidar"'s message of "Tue, 08 Nov 2022 13:43:01 +0200") Received-SPF: pass client-ip=205.166.94.24; envelope-from=akrl@sdf.org; helo=mx.sdf.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:299339 Archived-At: Bj=C3=B6rn Bidar writes: > Andrea Corallo writes: > >> Bj=C3=B6rn Bidar writes: >> >>> Andrea Corallo writes: >>> >>>> Max Brieiev writes: >>>> >>>>> "Dr. Arne Babenhauserheide" writes: >>>>> >>>>>> My ~/.emacs.d/ is actually versiontracked as part of my repository, >>>>>> because emacs is my build tool to compile org-mode to PDF and I need= a >>>>>> reproducible environment so others can use it, too. >>>>> >>>>> If Emacs is your build tool, then you probably run it in a batch mode. >>>>> >>>>> I think in one of his messages Andrea said that native compiler is >>>>> disabled when Emacs is run in batch mode. >>>> >>>> Yep that's correct. >>> >>> But I think it possible to call `native-compile` in batch mode I think. >>> I do this with borg to precompile all packages when I update them. >> >> Yes that's correct, only the machanism that automatically triggers async >> native compilations is disabled but you can still invoke compilations >> manually. > > What is the suggested what of doing so in parallel? You can do it from outside if you use N instanceses of Emacs leveraging `batch-native-compile'. Another option would be to run one Emacs leveraging `native-compile-async', but you'll have to add some simple custom code to have Emacs wainting for all compilation to be finished before exiting. `native-comp-async-all-done-hook' might be of hand there. Andrea