delorie.com/archives/browse.cgi | search |
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:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type; q=dns; s=default; b=iwtz | |
RFZyykrRBl++iniLN8O0WSh9NmpOXKvkAIgwdCks4hFMFn3w6p2q7K7cd2Jst1qb | |
UsJNC78ymdc8t/l16GaOvT1v4+YfP/eK5eB4FzKCQ1oRn9BDtnxDzM31MvLIY6uI | |
jhCvQ9niizfyyEECa+rEmqiCqyFiT4fa2l22oO8= | |
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:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type; s=default; bh=WSHUV+GXgK | |
0LArwa5R3o/nbc/ic=; b=ATvAgIBkkWWh2z6nBz/B2Dh+EIGElCyvXfwzKaIW+F | |
HETaRxxOvlmFECLFQVOTSOQ3aqjqLzCo2w9D5glmUotF9/8gLRDY4LiuwcRffDo0 | |
2jXsb0v2OXonh81QBR/lySpnMvsV5Ggzm1ogurRxaQEoj+/cxmCU1eD+7zTTMwHd | |
U= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Area, families, atzeri, Atzeri |
X-HELO: | mail-qt0-f176.google.com |
X-Google-DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=UDxFe33zjLE6+g35T4qkllUlPI0Oypsl3FdAf4GRUPg=; b=LiRnS6nV77H6k+aa04mZUx7B1t6qkRsmZQEMIoyJE0/uXfJqwBN8HXquP/rjCM7/7v /YfIPwzycRFVxr09GkPO224iaiXLBTOaxCHIuzdyxkLdf1tLenOudg1qIXQ2hUv4m93L 4kkiCj266iCBSoRdD9Bn4Tp9oDwceMzSxRf9csfNzy5BAB2ByILbSifhVgeXfVSk0kJN fRjF6DAV5tk+WShEid1p/eVjkACXR0Py4JqLfXb/PNMBzIXw3i1UT1QxXAmh2gDCmPRl gN5luczJCllrCzl0sAhEc3r9267uhT2O20o6/BGLTi78a19zwyOa52njwDKthj3FGOEw Q7hw== |
X-Gm-Message-State: | AIkVDXKBFAZmLq3hsr9SeDCQhlKePvV1QwFBaUUyanzMROzw2GkGyRsLNCJpd4LAMMt0yw== |
X-Received: | by 10.200.41.248 with SMTP id 53mr15607141qtt.3.1482141532990; Mon, 19 Dec 2016 01:58:52 -0800 (PST) |
Subject: | Re: OpenMPI Problem |
To: | cygwin AT cygwin DOT com |
References: | <CAGKnoQA3JwziRerSGxr6Dqnxx_zgitrJ1FuRg5oFk7wuhh0GtQ AT mail DOT gmail DOT com> <b0c5ec41-ff71-72bc-3912-6b43e39fb57f AT gmail DOT com> |
From: | Marco Atzeri <marco DOT atzeri AT gmail DOT com> |
Message-ID: | <53c8b252-6e7c-bdbf-3712-a4aea3b0885d@gmail.com> |
Date: | Mon, 19 Dec 2016 10:58:44 +0100 |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 |
MIME-Version: | 1.0 |
In-Reply-To: | <b0c5ec41-ff71-72bc-3912-6b43e39fb57f@gmail.com> |
X-IsSubscribed: | yes |
--------------A4A1B6E05F055996286C3C88 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 19/12/2016 07:58, Marco Atzeri wrote: > On 18/12/2016 15:55, Bahadır Öncel wrote: >> Hello all! >> I've installed cygwin and openmpi successfully. I can compile and run >> mpi programs. Twist is, even the openmpi test program hello_c.c approx >> takes a minute to run. When I try in my virtual machine (linux) the >> same program takes less than a second to run. >> I've found that other users asked the same question but did not find >> any solution. >> Thanks in advance. >> >> -- > > the most likely issue is a network interface timeout. > Try disabling WIFI network or VPN interface as test. > > Regards > Marco > Hi Bahadır, this is the normal behaviour of the hello_c run on my machine. $ time mpirun -n 2 ./hello_c.exe Hello, world, I am 0 of 2, (Open MPI v1.10.4, package: Open MPI , ident: 1.10.4, repo rev: v1.10.3-45-gaafbd34, Sep 01, 2016, 129) Hello, world, I am 1 of 2, (Open MPI v1.10.4, package: Open MPI , ident: 1.10.4, repo rev: v1.10.3-45-gaafbd34, Sep 01, 2016, 129) real 0m3.428s user 0m1.293s sys 0m2.930s The timing should be in the second range. Attached a program that will allow you to identify all the network interfaces as seen by Cygwin with their Windows name. $ gcc -o get-interface get-interface.c $ ./get-interface internal_name: {EC2ABB5C-42A8-431D-A133-8F4BE0F309AF} flags: AF_INET6 up multicast address: fe80::a479:1393:b7d0:fb25%18 friendly_name: Local Area Connection 2 internal_name: {EC2ABB5C-42A8-431D-A133-8F4BE0F309AF} flags: AF_INET up broadcast multicast address: 169.254.251.37 friendly_name: Local Area Connection 2 ...and so on. --------------A4A1B6E05F055996286C3C88 Content-Type: text/plain; charset=UTF-8; name="get-interface.c" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="get-interface.c" LyogI2RlZmluZSBfR05VX1NPVVJDRSAgKiBUbyBnZXQgZGVmbnMgb2YgTklf TUFYU0VSViBhbmQgTklfTUFYSE9TVCAqLwojaW5jbHVkZSA8YXJwYS9pbmV0 Lmg+CiNpbmNsdWRlIDxzeXMvc29ja2V0Lmg+CiNpbmNsdWRlIDxuZXRkYi5o PgojaW5jbHVkZSA8aWZhZGRycy5oPgojaW5jbHVkZSA8c3RkaW8uaD4KI2lu Y2x1ZGUgPHN0ZGxpYi5oPgojaW5jbHVkZSA8dW5pc3RkLmg+CiNpbmNsdWRl IDxzdHJpbmcuaD4KI2luY2x1ZGUgPHN5cy9pb2N0bC5oPgojaW5jbHVkZSA8 bmV0L2lmLmg+CgoKdm9pZCBwcmludF9mbGFncyh1bnNpZ25lZCBpbnQgZmxh Z3MpCnsKICAgICAgICBjb25zdCBjaGFyKiBzZXAgPSAiIiwgKnNwID0gIiAi OwogICAgICAgIGlmIChmbGFncyAmIElGRl9VUCkgewogICAgICAgICAgICAg ICAgcHJpbnRmKCIlc3VwIiwgc2VwKTsKICAgICAgICAgICAgICAgIHNlcCA9 IHNwOwogICAgICAgIH0KICAgICAgICBpZiAoZmxhZ3MgJiBJRkZfQlJPQURD QVNUKSB7CiAgICAgICAgICAgICAgICBwcmludGYoIiVzYnJvYWRjYXN0Iiwg c2VwKTsKICAgICAgICAgICAgICAgIHNlcCA9IHNwOwogICAgICAgIH0KICAg ICAgICBpZiAoZmxhZ3MgJiBJRkZfTE9PUEJBQ0spIHsKICAgICAgICAgICAg ICAgIHByaW50ZigiJXNsb29wYmFjayIsIHNlcCk7CiAgICAgICAgICAgICAg ICBzZXAgPSBzcDsKICAgICAgICB9CiAgICAgICAgaWYgKGZsYWdzICYgSUZG X05PVFJBSUxFUlMpIHsKICAgICAgICAgICAgICAgIHByaW50ZigiJXNub3Ry YWlsZXJzIiwgc2VwKTsKICAgICAgICAgICAgICAgIHNlcCA9IHNwOwogICAg ICAgIH0KICAgICAgICBpZiAoZmxhZ3MgJiBJRkZfUlVOTklORykgewogICAg ICAgICAgICAgICAgcHJpbnRmKCIlc3J1bm5pbmciLCBzZXApOwogICAgICAg ICAgICAgICAgc2VwID0gc3A7CiAgICAgICAgfQogICAgICAgIGlmIChmbGFn cyAmIElGRl9QUk9NSVNDKSB7CiAgICAgICAgICAgICAgICBwcmludGYoIiVz cHJvbWlzYyIsIHNlcCk7CiAgICAgICAgICAgICAgICBzZXAgPSBzcDsKICAg ICAgICB9CiAgICAgICAgaWYgKGZsYWdzICYgSUZGX01VTFRJQ0FTVCkgewog ICAgICAgICAgICAgICAgcHJpbnRmKCIlc211bHRpY2FzdCIsIHNlcCk7CiAg ICAgICAgICAgICAgICBzZXAgPSBzcDsKICAgICAgICB9Cn0KCmludCBtYWlu KGludCBhcmdjLCBjaGFyICphcmd2W10pCnsKICAgIHN0cnVjdCBpZmFkZHJz ICppZmFkZHIsICppZmE7CiAgICBpbnQgZmFtaWx5LCBzLCBuOwogICAgY2hh ciBob3N0W05JX01BWEhPU1RdOwoKICAgIHN0cnVjdCBpZnJlcSBpZnI7CiAg ICBzdHJ1Y3QgaWZyZXFfZnJuZGx5bmFtZSBpZmY7CiAgICBzdHJ1Y3QgaWZy ZXFfZnJuZGx5bmFtZSAqIGlmZnA7CiAgICAKICAgIHN0cnVjdCBpZmFkZHJz X2h3ZGF0YSAqIGlmaHdkYXRhOwoKICAgIGlmIChnZXRpZmFkZHJzKCZpZmFk ZHIpID09IC0xKSB7CiAgICAgICAgcGVycm9yKCJnZXRpZmFkZHJzIik7CiAg ICAgICAgZXhpdChFWElUX0ZBSUxVUkUpOwogICAgfQoKICAgIC8qIFdhbGsg dGhyb3VnaCBsaW5rZWQgbGlzdCwgbWFpbnRhaW5pbmcgaGVhZCBwb2ludGVy IHNvIHdlCiAgICAgICBjYW4gZnJlZSBsaXN0IGxhdGVyICovCgogICAgZm9y IChpZmEgPSBpZmFkZHIsIG4gPSAwOyBpZmEgIT0gTlVMTDsgaWZhID0gaWZh LT5pZmFfbmV4dCwgbisrKSB7CiAgICAgICAgaWYgKGlmYS0+aWZhX2FkZHIg PT0gTlVMTCkKICAgICAgICAgICAgY29udGludWU7CgogICAgICAgIGZhbWls eSA9IGlmYS0+aWZhX2FkZHItPnNhX2ZhbWlseTsKCiAgICAgICAgLyogRGlz cGxheSBpbnRlcmZhY2UgbmFtZSBhbmQgZmFtaWx5IChpbmNsdWRpbmcgc3lt Ym9saWMKICAgICAgICAgICBmb3JtIG9mIHRoZSBsYXR0ZXIgZm9yIHRoZSBj b21tb24gZmFtaWxpZXMpICovCgogICAgICAgIHByaW50ZigiaW50ZXJuYWxf bmFtZTogXHQlc1xuIixpZmEtPmlmYV9uYW1lKTsKCglwcmludGYoIiBmbGFn czogXHQlcyAiLAogICAgICAgICAgICAgICAoZmFtaWx5ID09IEFGX0lORVQp ID8gIkFGX0lORVQgIiA6CiAgICAgICAgICAgICAgIChmYW1pbHkgPT0gQUZf SU5FVDYpID8gIkFGX0lORVQ2IiA6ICJ1bmtub3duICIpOwoKICAgICAgICBw cmludF9mbGFncyhpZmEtPmlmYV9mbGFncyk7CglwcmludGYoIlxuIik7Cgog ICAgICAgIC8qIEZvciBhbiBBRl9JTkVUKiBpbnRlcmZhY2UgYWRkcmVzcywg ZGlzcGxheSB0aGUgYWRkcmVzcyAqLwoKICAgICAgICBpZiAoZmFtaWx5ID09 IEFGX0lORVQgfHwgZmFtaWx5ID09IEFGX0lORVQ2KSB7CiAgICAgICAgICAg IHMgPSBnZXRuYW1laW5mbyhpZmEtPmlmYV9hZGRyLAogICAgICAgICAgICAg ICAgICAgIChmYW1pbHkgPT0gQUZfSU5FVCkgPyBzaXplb2Yoc3RydWN0IHNv Y2thZGRyX2luKSA6CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIHNpemVvZihzdHJ1Y3Qgc29ja2FkZHJfaW42KSwKICAgICAg ICAgICAgICAgICAgICBob3N0LCBOSV9NQVhIT1NULAogICAgICAgICAgICAg ICAgICAgIE5VTEwsIDAsIE5JX05VTUVSSUNIT1NUKTsKICAgICAgICAgICAg aWYgKHMgIT0gMCkgewogICAgICAgICAgICAgICAgcHJpbnRmKCJnZXRuYW1l aW5mbygpIGZhaWxlZDogJXNcbiIsIGdhaV9zdHJlcnJvcihzKSk7CiAgICAg ICAgICAgICAgICBleGl0KEVYSVRfRkFJTFVSRSk7CiAgICAgICAgICAgIH0K CiAgICAgICAgICAgIHByaW50ZigiIGFkZHJlc3M6XHQlc1xuIiwgaG9zdCk7 CiAgICAgICAgICAgIGlmaHdkYXRhPWlmYS0+aWZhX2RhdGE7CiAgICAgICAg ICAgIGlmZnA9JihpZmh3ZGF0YS0+aWZhX2ZybmRseW5hbWUpOwogICAgICAg ICAgICBwcmludGYoIiBmcmllbmRseV9uYW1lOlx0JXNcblxuIiwgaWZmcC0+ aWZyZl9mcmllbmRseW5hbWUpOwoKICAgICAgICB9CiAgICB9CgogICAgZnJl ZWlmYWRkcnMoaWZhZGRyKTsKICAgIGV4aXQoRVhJVF9TVUNDRVNTKTsKfQo= --------------A4A1B6E05F055996286C3C88 Content-Type: text/plain; charset=us-ascii -- 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 --------------A4A1B6E05F055996286C3C88--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |