From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 121990 invoked by alias); 23 Sep 2018 19:17:50 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 121973 invoked by uid 89); 23 Sep 2018 19:17:50 -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*i:sk:F61171E, H*f:sk:F61171E 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 19:17:48 +0000 Received: from localhost ([127.0.0.1] helo=moene.org) by moene.org with esmtp (Exim 4.91) (envelope-from ) id 1g49t3-0005ZR-Bb; Sun, 23 Sep 2018 21:17:45 +0200 Subject: Re: OpenCoarrays integration with gfortran To: Bernhard Reutner-Fischer , Jerry DeLisle , Damian Rouson Cc: Thomas Koenig , ams@codesourcery.com, Janne Blomqvist , 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: <1cf5773a-0ec7-dc22-0dbe-9075590fd9a9@moene.org> Date: Sun, 23 Sep 2018 19:17: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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-09/txt/msg00181.txt.bz2 [ dropping mailing list gcc-patches, as it is not relevant to *this* discussion :-) ] On 09/23/2018 06:47 PM, Bernhard Reutner-Fischer wrote: > On 23 September 2018 11:46:57 CEST, Toon Moene wrote: >> 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 ... ] > > Are you sure you need the -L? > For me a simple -fcoarray=lib -lcaf_mpi > links fine. I get this: toon@moene:~/src$ gfortran -g -fbacktrace -fcoarray=lib random-weather.f90 -lcaf_mpi /usr/bin/ld: cannot find -lcaf_mpi collect2: error: ld returned 1 exit status Are you sure the linker isn't finding another libcaf_mpi.so ? > Along the same lines a simple > $ mpirun -np 4 ./a.out > runs fine as expected, like any other mpi program. Yeah, sorry. I was already using the options --oversubscribe --bind-to none (of which the --oversubscribe certainly is necessary) before I installed Debian's coarray packages. I need it because otherwise openmpi will complain that I only have 10 cores (which is correct). 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