From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.smtpout.orange.fr (smtp03.smtpout.orange.fr [80.12.242.125]) by sourceware.org (Postfix) with ESMTP id 6A7543857C73 for ; Fri, 19 Mar 2021 20:33:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 6A7543857C73 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=orange.fr Authentication-Results: sourceware.org; spf=none smtp.mailfrom=cessenat@orange.fr Received: from [192.168.1.63] ([90.120.130.95]) by mwinf5d05 with ME id iLSL2400K23eTDW03LSLmX; Fri, 19 Mar 2021 21:26:21 +0100 X-ME-Helo: [192.168.1.63] X-ME-Auth: Y2Vzc2VuYXRAb3JhbmdlLmZy X-ME-Date: Fri, 19 Mar 2021 21:26:21 +0100 X-ME-IP: 90.120.130.95 Subject: Re: Choice of an external blas lib To: Patrick Alken , gsl-discuss@sourceware.org References: <0d8bdeb4-f7ac-94e7-9d35-5977f2a15060@orange.fr> <5790211c-8bc8-ccda-266d-66d971155fd6@colorado.edu> From: Olivier Cessenat Message-ID: <0713c756-bd2a-a1f3-ed66-f1ad9952a8a8@orange.fr> Date: Fri, 19 Mar 2021 21:26:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <5790211c-8bc8-ccda-266d-66d971155fd6@colorado.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: fr-FR X-Spam-Status: No, score=2.1 required=5.0 tests=BAYES_05, BODY_8BITS, FREEMAIL_FROM, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gsl-discuss@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gsl-discuss mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Mar 2021 20:33:54 -0000 Ok, that's genious ! Thank you for explaining it to me, I had missed that point. Just thinking aloud : so with spack that means the +external-cblas option is of no interest. One can either [assuming depends_on('blas', when='+blas') and depends_on('gsl', when='+gsl')] spack install mypackage+blas+gsl ^gsl ^myblas or spack install mypackage~blas+gsl ^gsl with an internal spec: << mypackage/package.py : something like:             if self.spec.satisfies('+gsl~blas'):                 env.append_flags('LDLIBS', '-lgslcblas') >> Cheers, Olivier Cessenat Le 19/03/2021 à 17:52, Patrick Alken a écrit : > This is done at link time, not compile time. You can link your program > with any cblas library of your choice > > On 3/19/21 3:29 AM, Olivier Cessenat wrote: >> Dear GSL developers, >> >> If one of you could modify the configure script so that it becomes >> easy to select an external cblas as has been done in "spack" for gsl >> 2.3 to 2.5 it would be very nice. >> >> Thanks a lot, >> >> Olivier Cessenat >> >> >>