From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0GJTAUJ1rGK/EwAAbAwnHQ (envelope-from ) for ; Fri, 17 Jun 2022 14:36:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kBUxAUJ1rGL+DgAA9RJhRA (envelope-from ) for ; Fri, 17 Jun 2022 14:36:18 +0200 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 AD7805424 for ; Fri, 17 Jun 2022 14:36:17 +0200 (CEST) Received: from localhost ([::1]:60548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2BCy-0001jM-Mt for larch@yhetil.org; Fri, 17 Jun 2022 08:36:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2BC8-0001gQ-Lv for guix-devel@gnu.org; Fri, 17 Jun 2022 08:35:24 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:54414) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2BC4-0002S6-Dn for guix-devel@gnu.org; Fri, 17 Jun 2022 08:35:22 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 54DDB1602; Fri, 17 Jun 2022 14:35:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TM8etGebgy-T; Fri, 17 Jun 2022 14:35:13 +0200 (CEST) Received: from jurong (unknown [IPv6:2001:861:c4:f2f0:5c3:4f65:ddfe:6444]) by hera.aquilenet.fr (Postfix) with ESMTPSA id ACB2D274; Fri, 17 Jun 2022 14:35:13 +0200 (CEST) Date: Fri, 17 Jun 2022 14:35:11 +0200 From: Andreas Enge To: guix-devel@gnu.org Subject: PARI/GP and parallelism Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Received-SPF: pass client-ip=185.233.100.1; envelope-from=andreas@enge.fr; helo=hera.aquilenet.fr 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655469377; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=JQ+G87550ZfigWQuKERPxEOqbxaXj61QYCiSIRq5wFM=; b=ealbao6sBHi/wEtkkEtwdRGVjq50ke1G/CS2vAT37L4Kczgcef6DUbDsjd2fjCg/jy9yjR 5ZYvTPXB3roK4Uqlnj9AHQ5LUWls0LJpK1/f6omY6Io9IahskkDzDK2Za6EBrDY0t6WkHh MOx3udl3rXGh2hbqe9zZF1qTFaLzi67ASCB9nD8vgZda+SnbvIkE9iHVrz3auksbBu3B9k V64LGjpUlG/d/MnDUafAJgK1cP97tG2cuMbaJdQ8HnTRU6PXt6P2lnWgFr+1h1zglBmVaT 692ThDdq4k5EWYl+M/dJBsV13lo/MMul00RvPB7I+Y0weM6p9Kvs7qII7wCnhw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655469377; a=rsa-sha256; cv=none; b=QlrEV5hi+Mf0FveHwRM3uQCS2zF3P/xPnXcSZ+8k/0aEDjaROGrW2Q8XjdP4aOBvXA1cmg FvuD1HucnhJIr3NAUL8XApWaYyATqgYZQCFExAglARsmxGSzk5SAXcO6cZTmr6FI9+mm4U 4xjnVAZc/MHd6Xp/LbES8VCsLhkLYLFDN99UQ/+KK1n++zmDhmL9GgEumxQ4TxmhqLhKaY RHLZPi9RCVzewHTgdtQv5wTP4ywy5t4dBlSS8zNlHuFPTItcvWuk07mcq59u1D2ARNOu9i iUNuYJPJhKiN6bEnHaZgyKfzTotxNsA1Nzs4JgmSQazIp/cG0F5RPMxod5IAxQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.59 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: AD7805424 X-Spam-Score: -2.59 X-Migadu-Scanner: scn0.migadu.com X-TUID: /+2+vsTAmQeF Hello, PARI/GP ("guix edit pari-gp") provides several mechanisms of parallelism, which could be honoured by providing different package variants. After discussion with the author, I would suggest to enable the pthread interface in the standard package (and to not provide an MPI variant unless someone voices demand). This can be obtained trivially be adding the configure flag "--mp=pthread". It will transparently parallelise a number of internal functions according to the number of processor cores, and should have negligible impact on single-core systems (which hardly exist nowadays anyway). What do you think? Are there any objections? Andreas