From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id eJVAAiGXc2V3GwEAG6o9tA:P1 (envelope-from ) for ; Fri, 08 Dec 2023 23:22:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id eJVAAiGXc2V3GwEAG6o9tA (envelope-from ) for ; Fri, 08 Dec 2023 23:22:25 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 016D9577BC for ; Fri, 8 Dec 2023 23:22:24 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ZJXtYDSG; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702074144; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=jMfHiRE3OQJw6Q/Vg03JIZBDHhz8XmA7iNR8WBe+wv4=; b=aDrBJRLjyX2tyT+FXzNAKPTdROYG03ne7lx/b+BqsfAYS6YB48OunFXG5WvPf4kVztuEjd RxNgASmhgigyU8shZAoxOvBWg/jsUd6wa1sPS5/j8QChnMhYgryAnyVnr/GzpcQFaYKzyU 03kXUrXVtGlCzT9EkfI73S3O80kGNBhxbzPG1+aYMDW3o7sQeVxEcW3E5j7/fcR4khx9tp NDZ0gISIivRt6FcH7X2vKkaTNQ8nQbwD1yu10ul/msSSpgIm+h1HaHHPomH3qqeb2c1D7Y HhaeTUg9wojOFKb1UfdEZDPWP65by+t3weCBjrpG+KSg4tsp8k6/3KpPKnWADg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702074144; a=rsa-sha256; cv=none; b=uDnjqlTJ5BTcRMDpVuQlqtKi81Ny7d0wQMqNGx9UjnLKuH/mR63PzqtaYAKRpZC1KUjnMN h8MhsHowiyt2S8/FEpuW0WOSGzYtPJmDRq5vbrTJhfMSv7p72HLwguigABgfnLsGKrEbLC oDpKxoRzbtYa/uErfZxTi05JJHLvA8lzWI/TF0x/ZGOid5/kuLvRDy0cZnsl8VxifPiuk9 aHgDjbe0OGZp4uNpZIMnmQbR5DUmICEX9ugx8S4GBmCz9bxg1z9+12rBp53Deo7uKQR+v6 9CxnR5j5ikZP/ygpyyOwpyAwNiX68NfkqSx7UrEmgWj9kT945amLaMbbYTHsyA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ZJXtYDSG; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBjEC-0003Sc-QU; Fri, 08 Dec 2023 17:21:48 -0500 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 1rBjEB-0003ST-A1 for emacs-orgmode@gnu.org; Fri, 08 Dec 2023 17:21:47 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rBjE9-0007JC-7Z for emacs-orgmode@gnu.org; Fri, 08 Dec 2023 17:21:47 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E2A2E240029 for ; Fri, 8 Dec 2023 23:21:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1702074102; bh=dXyFbYtD+LHCTOjZgEyp7nJCJKeGfiTyPQEUuDxNBio=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=ZJXtYDSG1YT2KTLWRTMVyilaRGxHqVgIzy+Uudl4SCZ2VXBqNwl4v+GEYTTjKdR4Z 29n/K+ltdDIGGKFWqlXtdZJA0u/B99hxzdYdPB2ioQnl4bFPqIeiBB1dHarmwH+b+U D70BGTSch3U6jDXvFXbsQPR+hFJotJmDuH43EaWvTF3yCU4xQk9QKx2n5IHxVwwDIF Xv2mmim3L9OP0uyTMHTPIoYSXqDnMMfgSTcklcTM7CUZPnrdVTQbnoKeJz/LATVqoD 0tNwxtLi7fgV6CFSOowKnlK3q2eR83GvhcUio+5o0TRZbtU7aodT8/ODrcN+MTTKPV 7LovtrjHWlKVw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Sn5GG3t5cz6tvZ; Fri, 8 Dec 2023 23:21:42 +0100 (CET) From: Ihor Radchenko To: Leo Butler Cc: tbanelwebmin , "emacs-orgmode@gnu.org" Subject: Re: How to use mpirun with C or C++ Org-babel? In-Reply-To: <87plzg7l25.fsf@t14.reltub.ca> References: <1819406926.505980.1701990611441@fidget.co-bxl> <6efe8fc4-c12f-e128-8d7e-9e32887b127c@free.fr> <87plzg7l25.fsf@t14.reltub.ca> Date: Fri, 08 Dec 2023 22:24:45 +0000 Message-ID: <87msukbadu.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -1.31 X-Spam-Score: -1.31 X-Migadu-Queue-Id: 016D9577BC X-Migadu-Scanner: mx11.migadu.com X-TUID: +VuqQVoNlhYJ Leo Butler writes: > I submitted an imperfect patch some time ago [1] that targeted your use > case: allow ob-C.el to create a named binary. Unfortunately, Ihor > dropped the issue due to lack of interest from other users. > > My goal was to enable something like this to work: > > #+begin_src cpp :includes :results none :file ./hello-world > std::cout << "Hello World!\n"; > #+end_src > > #+begin_src bash :async t > mpirun -np 4 ./hello-world > #+end_src > > As I said, the patch I wrote was not perfect, but I am happy to re-visit > the issue. The ability to create named binaries would significantly > increase the usability of ob-C for projects where you want to compile > the source once and run the binary repeatedly for potentially long > periods of time. Note that I did not oppose the above behaviour when the result of evaluation is just compiling to :file. The problem was with compiling to a :file and _also_ executing it. If you want to propose a patch that will allow compile-only, I see no problem at all. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at