From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id gCXWHxJRcmWKBgEA9RJhRA:P1 (envelope-from ) for ; Fri, 08 Dec 2023 00:11:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gCXWHxJRcmWKBgEA9RJhRA (envelope-from ) for ; Fri, 08 Dec 2023 00:11:14 +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 43C2E1547E for ; Fri, 8 Dec 2023 00:11:14 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=mailfence.com header.s=20210208-e7xh header.b=fR69ciGK; dmarc=pass (policy=quarantine) header.from=mailfence.com; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701990674; a=rsa-sha256; cv=none; b=llQNORyj3i5b7fSS0zFsNDRn3PKQGJTPnk+cjvRWC9cfZyFIpRL198zxVkMkeRwveoaxqH 1cQJoiSNxgkojq5A7CbMdzX8M65M74XSixlRZkTAVMc5W0/IbS4RUYqYJArvzu8VcTsRgS vOx/62NfN+SzDYNr2OVrMOO0njYYXx/UZDCEWwocUuXCz8TZejLxd9DRQAyE0cTf8UiePm PurmlsVyLXhVWjDiVxS0WieZU3SV16m+6q4hcOCTY/Ey3SnZAgTOPVocNQp38gFxB/xbTj rP5RJqoWq37UCKrqsGUnLDmLnW9qKkOS5Rro3i123snTa5lqq62b9nZEgAvKLA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=mailfence.com header.s=20210208-e7xh header.b=fR69ciGK; dmarc=pass (policy=quarantine) header.from=mailfence.com; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701990674; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=3j3X5G3Zei04/sGr1nB3f89xZxcRzaT4ldemgvcErNg=; b=ZADeA0IcG5mCtbrCXFaPwVXtJVlbtXZPh08SlPZJq27avRB73vqJXB0wVg7PMA44SnQWAV jy0FWWd+u9VgvexIeyzY5CnUjMqs20yJHXeNK6/YEzeyjXWUgcH328QYlYOsy8CFn4zWbZ hgogYqJXxnZfAD3G1xYXeWFrBkZwebQOnwLMni9e8PGZG0nxd5z5tO9jfROYUiEryH1FIq 6ReKxV/wh4ubh2NBIqJkxPUCsy+LuUp5xukgFopRSOdBGeljJjuT0gnrjLHrqBu60wC7uH N2okmLVtIjNKIgQUcGWkv1xmgHAx95WsflngMOBDvZ1od6RBuz8Hlc2dBfOS8Q== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBNVh-0002fr-3N; Thu, 07 Dec 2023 18:10:25 -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 1rBNVe-0002fh-Dl for emacs-orgmode@gnu.org; Thu, 07 Dec 2023 18:10:22 -0500 Received: from wilbur.contactoffice.com ([212.3.242.68]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rBNVb-0002DJ-RC for emacs-orgmode@gnu.org; Thu, 07 Dec 2023 18:10:22 -0500 Received: from fidget.co-bxl (fidget.co-bxl [10.2.0.33]) by wilbur.contactoffice.com (Postfix) with ESMTP id 8EC8D1EDB for ; Fri, 8 Dec 2023 00:10:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1701990613; s=20210208-e7xh; d=mailfence.com; i=edgarlux@mailfence.com; h=Date:Message-ID:MIME-Version:Content-Type:To:Subject:From:Content-Transfer-Encoding; l=418; bh=3j3X5G3Zei04/sGr1nB3f89xZxcRzaT4ldemgvcErNg=; b=fR69ciGKJL3FT3JKFu6cA70uc+YL11SH592OYEPQH/nYk7wOSjnzBsQUFU7yBw2P 1jAz4nyqswYa3M4U++NkmyFr/f1K4Yt1idr71YZeKxfcgzeNutTO4lSNiejpa3rYIpo XsjkXOz67HP+/CPHgPUdQXbG+RzcGVcfqQwDZTgbLVH3NH/wARUR3GNiUtm20yyO/jw t+5BEEUUq6NyiGCqrRaI2UcC5swW3kOQL9nzPNwMIbFK5nBFD1z48N5sk5VtNPGvjLm ar3ZwZRfO0USNQKR02DrVTimz4C9NnFOVugNfTk4l5aWrv3kTTPSqVzyQqsSo3IElx7 +oNXRFB2FA== Date: Fri, 8 Dec 2023 00:10:11 +0100 (CET) Message-ID: <1819406926.505980.1701990611441@fidget.co-bxl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 To: Emacs Orgmode Subject: How to use mpirun with C or C++ Org-babel? From: Edgar Lux Content-Transfer-Encoding: 7bit X-Mailer: ContactOffice Mail X-ContactOffice-Account: com:195124330 Received-SPF: pass client-ip=212.3.242.68; envelope-from=edgarlux@mailfence.com; helo=wilbur.contactoffice.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -6.16 X-Spam-Score: -6.16 X-Migadu-Queue-Id: 43C2E1547E X-TUID: X9Cqo+UoWsR0 Hello, I found [1][2] that it is possible to change the compiler for C and C++ source blocks. I would like to know if there is a way to add =mpirun -np 2= (where 2 can be any other number) to run the resulting executable. Thanks! [1] https://orgmode.org/worg//org-contrib/babel/languages/ob-doc-C.html [2] https://github.com/gheber/literate-hdf5 -- Sent with https://mailfence.com Secure and private email