From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 43887 invoked by alias); 23 Sep 2018 09:47:04 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 43868 invoked by uid 89); 23 Sep 2018 09:47:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,KAM_SHORT autolearn=no version=3.3.2 spammy=H*f:sk:e3d1593, Testing, Reading, H*f:sk:7Bnwu_n X-HELO: moene.org Received: from moene.org (HELO moene.org) (80.101.130.238) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 23 Sep 2018 09:47:01 +0000 Received: from localhost ([127.0.0.1] helo=moene.org) by moene.org with esmtp (Exim 4.91) (envelope-from ) id 1g40yg-0007pm-3F; Sun, 23 Sep 2018 11:46:58 +0200 Subject: Re: OpenCoarrays integration with gfortran To: Jerry DeLisle , Damian Rouson Cc: Thomas Koenig , ams@codesourcery.com, Janne Blomqvist , gcc patches , gfortran References: <024e798b9539b765a1259cfc9cb2f1dc480b24ca.1536144068.git.ams@codesourcery.com> <7f5064c3-afc6-b7b5-cade-f03af5b86331@moene.org> <9290b55e-b12a-838a-5943-0c72d040dc3f@codesourcery.com> <7bef0368-f709-642b-3bb4-14cb07aaba25@netcologne.de> <594e5471-3e22-40ae-0be4-952b2c246e3a@charter.net> From: Toon Moene Message-ID: Date: Sun, 23 Sep 2018 10:41:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <594e5471-3e22-40ae-0be4-952b2c246e3a@charter.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-09/txt/msg01296.txt.bz2 On 09/22/2018 01:23 AM, Jerry DeLisle wrote: > On 9/21/18 1:16 PM, Damian Rouson wrote:> On Fri, Sep 21, 2018 at 9:25 > AM Jerry DeLisle wrote: > >> 1) Focus on distribution packages such as Fedora, Debian, Ubuntu, > >> Windows, etc. Building of these packages needs to be automated into the > >> distributions. > > > > This is the option that the OpenCoarrays documentation recommends as > easiest for > > most users. > > Agree. I just installed opencoarrays on my system at home (Debian Testing): root@moene:~# apt-get install libcoarrays-openmpi-dev Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libcaf-openmpi-3 The following NEW packages will be installed: libcaf-openmpi-3 libcoarrays-openmpi-dev 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 107 kB of archives. After this operation, 317 kB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 http://ftp.nl.debian.org/debian testing/main amd64 libcaf-openmpi-3 amd64 2.2.0-3 [38.2 kB] Get:2 http://ftp.nl.debian.org/debian testing/main amd64 libcoarrays-openmpi-dev amd64 2.2.0-3 [68.9 kB] Fetched 107 kB in 0s (634 kB/s) Selecting previously unselected package libcaf-openmpi-3:amd64. (Reading database ... 212249 files and directories currently installed.) Preparing to unpack .../libcaf-openmpi-3_2.2.0-3_amd64.deb ... Unpacking libcaf-openmpi-3:amd64 (2.2.0-3) ... Selecting previously unselected package libcoarrays-openmpi-dev:amd64. Preparing to unpack .../libcoarrays-openmpi-dev_2.2.0-3_amd64.deb ... Unpacking libcoarrays-openmpi-dev:amd64 (2.2.0-3) ... Setting up libcaf-openmpi-3:amd64 (2.2.0-3) ... Setting up libcoarrays-openmpi-dev:amd64 (2.2.0-3) ... Processing triggers for libc-bin (2.27-6) ... [ previously this led to apt errors, but not now. ] and moved my own installation of the OpenCoarrays-2.2.0.tar.gz out of the way: toon@moene:~$ ls -ld *pen* drwxr-xr-x 6 toon toon 4096 Aug 10 16:01 OpenCoarrays-2.2.0.opzij drwxr-xr-x 8 toon toon 4096 Sep 15 11:26 opencoarrays-build.opzij drwxr-xr-x 6 toon toon 4096 Sep 15 11:26 opencoarrays.opzij and recompiled my stuff: gfortran -g -fbacktrace -fcoarray=lib random-weather.f90 -L/usr/lib/x86_64-linux-gnu/open-coarrays/openmpi/lib -lcaf_mpi [ Yes, the location of the libs is quite experimental, but OK for the "Testing" variant of Debian ... ] I couldn't find cafrun, but mpirun works just fine: toon@moene:~/src$ echo ' &config /' | mpirun --oversubscribe --bind-to none -np 20 ./a.out Decomposition information on image 7 is 4 * 5 slabs with 23 * 18 grid cells on this image. Decomposition information on image 6 is 4 * 5 slabs with 23 * 18 grid cells on this image. Decomposition information on image 11 is 4 * 5 slabs with 23 * 18 grid cells on this image. Decomposition information on image 15 is 4 * 5 slabs with 23 * 18 grid cells on this image. Decomposition information on image 1 is 4 * 5 slabs with 23 * 18 grid cells on this image. Decomposition information on image 13 is 4 * 5 slabs with 23 * 18 grid cells on this image. Decomposition information on image 12 is 4 * 5 slabs with 21 * 18 grid cells on this image. Decomposition information on image 20 is 4 * 5 slabs with 21 * 18 grid cells on this image. Decomposition information on image 9 is 4 * 5 slabs with 23 * 18 grid cells on this image. Decomposition information on image 14 is 4 * 5 slabs with 23 * 18 grid cells on this image. Decomposition information on image 16 is 4 * 5 slabs with 21 * 18 grid cells on this image. Decomposition information on image 17 is 4 * 5 slabs with 23 * 18 grid cells on this image. Decomposition information on image 18 is 4 * 5 slabs with 23 * 18 grid cells on this image. Decomposition information on image 2 is 4 * 5 slabs with 23 * 18 grid cells on this image. Decomposition information on image 4 is 4 * 5 slabs with 21 * 18 grid cells on this image. Decomposition information on image 5 is 4 * 5 slabs with 23 * 18 grid cells on this image. Decomposition information on image 3 is 4 * 5 slabs with 23 * 18 grid cells on this image. Decomposition information on image 8 is 4 * 5 slabs with 21 * 18 grid cells on this image. Decomposition information on image 10 is 4 * 5 slabs with 23 * 18 grid cells on this image. Decomposition information on image 19 is 4 * 5 slabs with 23 * 18 grid cells on this image. ... etc. (see http://moene.org/~toon/random-weather.f90). I presume other Linux distributors will follow shortly (this *is* Debian Testing, which can be a bit testy at times - but I do trust my main business at home on it for over 15 years now). Kind regards, -- Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290 Saturnushof 14, 3738 XG Maartensdijk, The Netherlands At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/ Progress of GNU Fortran: http://gcc.gnu.org/wiki/GFortran#news