Discussion:
I can not make MPI recognizes a dual core
(too old to reply)
Yessica Brinkmann
2010-05-23 04:01:58 UTC
Permalink
Hello. I am using MPICH2. I am writing my first program in MPI. I
write the sentences:
...
int id;
MPI_Comm_rank (MPI_COMM_WORLD, & id);
if (id == 0)
/ * Master task * /
(
...
)
else
/ * Worker task * /
(
...
)
And I write other sentences. The issue is that it does not recognize a
DualCore processor, and takes the machine as it only has one
processor, indeed, never enters the else.

I am using windows 7 and I execute at windows comman line mpiexec -np
2 my_program.exe
at the MPICH2\bin directory.
The system response to me:
Please specify an authentication passphrase for smpd:
And then I write the authentication passphrase that I write on the
MPICH instalation and the system response to me: Error while connectig
to host, No se puede establecer una conexión ya
que el equipo de destino denegó expresamente dicha conexión (10061)
Connect on sock(host=User-PC, port=8676) failed, exhaused all end
points Unable to connect to 'User-PC:8678', sock error: Error = -1

When I write smpd -start the system response to me:
OpenSCManager failed: Denied access. (error 5)
I would appreciate very much any help.
Sincerely,
Yessica Brinkmann
Heiko Bauke
2010-05-24 11:39:53 UTC
Permalink
Hi,

On Sat, 22 May 2010 21:01:58 -0700 (PDT)
Post by Yessica Brinkmann
Hello. I am using MPICH2. I am writing my first program in MPI. I
...
int id;
MPI_Comm_rank (MPI_COMM_WORLD, & id);
if (id == 0)
/ * Master task * /
(
...
)
else
/ * Worker task * /
(
...
)
And I write other sentences. The issue is that it does not recognize a
DualCore processor, and takes the machine as it only has one
processor, indeed, never enters the else.
this is an issue of the MPI run time environment. You have to specify
the number of processes at program startup. Read the documentation of
mpiexec and/or mpirun.


Heiko
--
-- Wie sich die Gegensätze gleichen!
-- (Alfred Polgar)
-- Number Crunch Blog @ http://numbercrunch.de
-- Cluster Computing @ http://www.clustercomputing.de
Michael Hofmann
2010-05-25 16:56:04 UTC
Permalink
Am 23.05.2010, 06:01 Uhr, schrieb Yessica Brinkmann
Post by Yessica Brinkmann
I am using windows 7 and I execute at windows comman line mpiexec -np
2 my_program.exe
at the MPICH2\bin directory.
And then I write the authentication passphrase that I write on the
MPICH instalation and the system response to me: Error while connectig
to host, No se puede establecer una conexión ya
que el equipo de destino denegó expresamente dicha conexión (10061)
Connect on sock(host=User-PC, port=8676) failed, exhaused all end
points Unable to connect to 'User-PC:8678', sock error: Error = -1
OpenSCManager failed: Denied access. (error 5)
I would appreciate very much any help.
This is not an MPI problem in general, but an MPICH2 problem on Windows 7.
You should try to get support from the MPICH2 people
(http://www.mcs.anl.gov/research/projects/mpich2/support/index.php?s=support).
They are the best to know how to circumvent any setup issues with MPICH2
on Windows 7. At least you should have a look at their mailing list
archive (https://lists.mcs.anl.gov/mailman/mmsearch/mpich-discuss) and
search for "windows 7".


Michael
Michael Hofmann
2010-05-25 16:59:27 UTC
Permalink
Am 25.05.2010, 18:56 Uhr, schrieb Michael Hofmann
Post by Michael Hofmann
Am 23.05.2010, 06:01 Uhr, schrieb Yessica Brinkmann
Post by Yessica Brinkmann
I am using windows 7 and I execute at windows comman line mpiexec -np
2 my_program.exe
at the MPICH2\bin directory.
And then I write the authentication passphrase that I write on the
MPICH instalation and the system response to me: Error while connectig
to host, No se puede establecer una conexión ya
que el equipo de destino denegó expresamente dicha conexión (10061)
Connect on sock(host=User-PC, port=8676) failed, exhaused all end
points Unable to connect to 'User-PC:8678', sock error: Error = -1
OpenSCManager failed: Denied access. (error 5)
I would appreciate very much any help.
This is not an MPI problem in general, but an MPICH2 problem on Windows
7. You should try to get support from the MPICH2 people
(http://www.mcs.anl.gov/research/projects/mpich2/support/index.php?s=support).
They are the best to know how to circumvent any setup issues with MPICH2
on Windows 7. At least you should have a look at their mailing list
archive (https://lists.mcs.anl.gov/mailman/mmsearch/mpich-discuss) and
search for "windows 7".
The mailing list archive is here:
https://lists.mcs.anl.gov/mailman/htdig/mpich-discuss/


Michael

Loading...