Typed command like below
$ mpiicpc -mmic -o Hello.MIC Hello.c
$ scp Hello.MIC mic0:/tmp/Hello.MIC
$ export I_MPI_MIC=enable
$ mpirun -n 2 -host mic0 /tmp/Hello.MIC
and I got this error
[proxy:0:0@mic0.local] HYDU_sock_connect (../../utils/sock/sock.c:268): unable to connect from "mic0.local" to "127.0.0.1" (Connection refused)
[proxy:0:0@mic0.local] main (../../pm/pmiserv/pmip.c:372): unable to connect to server 127.0.0.1 at port 46331 (check for firewalls!)
this is my host setup
$ cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
172.31.1.1 mic0.local mic0 #Generated-by-micctrl
$ ssh mic0 cat /etc/hosts
172.31.1.254 host
172.31.1.1 mic0.local mic0
I did firewall off, and passward-less ssh connection.
and copied host mpi lib, and bin files to mic0.
what is the problem with this error?
please, give me some hints.
ps)I refered Using the Intel® MPI Library on Intel® Xeon Phi™ Coprocessor Systems https://software.intel.com/en-us/articles/using-the-intel-mpi-library-on-intel-xeon-phi-coprocessor-systems#prep