From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0CzvJyLxF2DJNwAA0tVLHw (envelope-from ) for ; Mon, 01 Feb 2021 12:16:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id YDzCIyLxF2CGTAAA1q6Kng (envelope-from ) for ; Mon, 01 Feb 2021 12:16:34 +0000 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 401AB9403A4 for ; Mon, 1 Feb 2021 12:16:33 +0000 (UTC) Received: from localhost ([::1]:47536 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6Y88-0005jK-S4 for larch@yhetil.org; Mon, 01 Feb 2021 07:16:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6Y7y-0005ix-Jf for guix-devel@gnu.org; Mon, 01 Feb 2021 07:16:23 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:46415) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6Y7v-0005qN-LR for guix-devel@gnu.org; Mon, 01 Feb 2021 07:16:21 -0500 Received: from nijino.local (217-149-173-242.nat.highway.telekom.at [217.149.173.242]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4DTn3b3fRCz1LBSH; Mon, 1 Feb 2021 13:16:11 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4DTn3b3fRCz1LBSH DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1612181771; bh=bgcRdscetBSMHLxu5G83low2gQK5+uwE6Yh+E5mptNM=; h=Subject:From:To:Cc:Date:In-Reply-To:From; b=mH2AZyrUoFS4TwFQXkiKsGmdKkdxIr2Qbz6yUTwjPsPTGdQLX9Gd2ST70pcHTnw5/ BwYKedZ9cbC6rllMRlNjSoLWsEe7baVIbmU6zsz+c767qAv1UvHELVEJx8FVA+HUKh irph+nUEWauNmJZrQH7Gj+8lIpzGLGuUJFY8gmEU= Message-ID: Subject: Installing a wrapper guile script in /bin From: Leo Prikler To: elaexuotee@wilsonb.com Date: Mon, 01 Feb 2021 13:16:10 +0100 In-Reply-To: 3EA9135IVLYXR.223U6JDXT4SSS@wilsonb.com Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 Received-SPF: pass client-ip=129.27.2.202; envelope-from=leo.prikler@student.tugraz.at; helo=mailrelay.tugraz.at X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.06 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tugraz.at header.s=mailrelay header.b=mH2AZyrU; dmarc=pass (policy=none) header.from=student.tugraz.at; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 401AB9403A4 X-Spam-Score: -3.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: MtWaOYVh47EF Hi elaexuotee, > More specifically, the package I have builds separate libraries for > CPUs with > AVX, AVX2, and no AVX support. Since build-type isn't sufficiently > specific to > distinguish such CPU features, I have, so far, opted to just build > all three > libs and stuff them under /lib/. That's certainly one approach to solving the issue of not knowing which CPU your code runs on. Another approach is described in [1] under the section "Dependency graph rewriting". TL;DR, just offer the base package with no AVX features, an AVX package and an AVX2 package. Then build any dependants against the base package. Users can afterwards decide to build against optimized versions on their own. Regards, Leo [1] https://hpc.guix.info/blog/2018/01/pre-built-binaries-vs-performance/