X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; q=dns; s=default; b=tMnnTiv jBpLNGGsLxepN7RQuf4b/M3JDqUTEGr4R4l4zxo8/In8HcD8NXg5uTsA11eREM2V R55sPQaNLXh4H/31H8LhWYt8//bsYUSpobZRH6OjatHEqhN8So2wzBoN5nQBFx4l P8AK9J6KbCymWLj2ZlTE14vS9Z3aUsgDLSOQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; s=default; bh=AExqEWNKw+pc8 w5uJnsBvNJoboo=; b=SOjZ602VpCpz2EwbjUrWR8/ReLRRZu9K05l7xTghaeOP1 A3ocinDWgb/bcZRDxHxp3EZpS74JtCzNgf86IqfTUqSZT9Rh/zRdKAMTkkkq33Mf 4zns4Q51L1iZGg/eU1/jbxr+rddZ1e6h3pVWYtnr70WnRycSczbXhRmZpHBn1U= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Erik, erik, bray, OpenBLAS X-HELO: mail-io0-f177.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=O3cJ/4BVXy9cqThXCyizHBTq+2pxWzVcN8A1VJHEdUY=; b=Hw9D3iqXROaYU8i0iZbTY3KTLUg64V5Np204xmcx6r4iMoM+QA2lXjPxX3cSReDqTX 0mE036eQ45zuK2zZOyDjUCauCxDw3rXeyJFz9/DyX7gop6vzWxspyX/dyAGomZ7WXwUC SrifyW8ApI1q0vjgCTrHIZzfWsFkyHcIOzTKsm0D4yXMfX2EZnE5D3cPsg3d2vDG6nH3 +2ooKF36hBzJWFGyg141gO4A6bQJ2Rw8khEd/XWizre2xEYMUWZ1iS3D35JnopCPBaDc dKjnCUFpSCpJomYCq5e5JX7Bue6AqM1RHtgd1F1cRhPODS1A+QhLBhSbCqcROAu6AmPC VLiQ== X-Gm-Message-State: APf1xPBgL47YQwAfDH+tLAnt8oCZSXyY1BgCB7tLi0QjBZWFyeImSlNg E4UTckzE0YKUI5QXJPK94svWq98CspucVTN5TYK3T5fU X-Google-Smtp-Source: AH8x2261u8rtR4w5/W7dZewIKBqD18K2gk2JaXUcbpffT1DwfwUWtx8aGB5+Eqty1QITlKupmX1qAmAWMjRLWLHrQ80= X-Received: by 10.107.56.8 with SMTP id f8mr2578262ioa.212.1518546228297; Tue, 13 Feb 2018 10:23:48 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Erik Bray Date: Tue, 13 Feb 2018 19:23:47 +0100 Message-ID: Subject: Re: OpenBLAS patch for Cygwin To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes Hi, Sorry for the non-response. Been traveling for the last week and not really checking this e-mail much. On Tue, Feb 6, 2018 at 3:15 PM, Marco Atzeri wrote: > On 06/02/2018 13:10, Erik Bray wrote: >> >> Hello, >> >> Users/maintainers of OpenBLAS on Cygwin may be interested in this >> patch to improve support for fork(): >> https://github.com/xianyi/OpenBLAS/pull/1450 >> >> Assuming this looks good (feedback welcome) it might be nice to have >> this patch included in the next release of the official OpenBLAS >> package for Cygwin since its incompatibility with fork() has caused >> problems in the past [1]. >> >> >> Thanks, >> E >> >> [1] https://trac.sagemath.org/ticket/22822 >> > > > Noted. And I see you just made a new package release incorporating my patch--thanks! > Do you have a test case to show the failure with current build ? The upstream pull request included such a test (the test had existed previously in the code base but was disabled and never re-enabled in the course of porting to a different testing framework). > Any reason to use OS_CYGWIN_NT and not __CYGWIN__ in the patch ? Normally I would just use __CYGWIN__ but this is following the convention used throughout the rest of the OpenBLAS codebase. It's actually kind of nice that they have a consistent naming scheme for platform macros. On Tue, Feb 6, 2018 at 3:24 PM, Corinna Vinschen wrote: > Also, it should really use pthread functions and drop the notion that > Cygwin is a Windows target. Assuming you're running fork from another > thread than the main thread, does it still work with native Windows > threads? I definitely agree in general. I'm going to experiment with a second patch to just have it use pthreads on Cygwin. I can't think of any reason it shouldn't work. Is there any particular extra overhead to pthreads in Cygwin over using the native API directly? AFAICT the only slight additional overhead is in thread creation, but that's not a problem. I haven't tried forking from another thread. I don't think that should make an enormous difference, but I'll make a test case to try that. Best, E -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple