<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><span style="font-size:12.800000190734863px">Hello,</span><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">I've been trying to compile and run a very simple mpi test on our cluster with intel-mpi and openmpi.  The test program is below.  When I run with openmpi everything is fine.  When I run with intel-mpi, I receive the following error</div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px"><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(245,245,245);background-color:rgb(30,30,30)"><span style="font-variant-ligatures:no-common-ligatures">This requires fcntl(2) to be implemented. As of 8/25/2011 it is not. Generic MPICH Message: File locking failed in ADIOI_Set_lock(fd 6,cmd F_SETLKW/7,type F_WRLCK/1,whence 0) with return value FFFFFFFF and errno 26.</span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(245,245,245);background-color:rgb(30,30,30)"><span style="font-variant-ligatures:no-common-ligatures">- If the file system is NFS, you need to use NFS version 3, ensure that the lockd daemon is running on all the machines, and mount the directory with the 'noac' option (no attribute caching).</span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(245,245,245);background-color:rgb(30,30,30)"><span style="font-variant-ligatures:no-common-ligatures">- If the file system is LUSTRE, ensure that the directory is mounted with the 'flock' option.</span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(245,245,245);background-color:rgb(30,30,30)"><span style="font-variant-ligatures:no-common-ligatures">ADIOI_Set_lock:: Function not implemented</span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(245,245,245);background-color:rgb(30,30,30)"><span style="font-variant-ligatures:no-common-ligatures">ADIOI_Set_lock:offset 0, length 4</span></p></div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">Any thoughts on how to proceed?  The size/format of the file read in seems to make no difference.</div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">Regards,</div><div style="font-size:12.800000190734863px">Luke</div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px"><span style="font-family:monaco;font-size:14px;background-color:rgb(18,18,18);font-variant-ligatures:no-common-ligatures;color:rgb(98,98,98)"><br></span></div><div style="font-size:12.800000190734863px"><span style="font-family:monaco;font-size:14px;background-color:rgb(18,18,18);font-variant-ligatures:no-common-ligatures;color:rgb(98,98,98)"> </span><span style="color:rgb(176,250,1);font-family:monaco;font-size:14px;background-color:rgb(18,18,18);font-variant-ligatures:no-common-ligatures">#include </span><span style="font-family:monaco;font-size:14px;background-color:rgb(18,18,18);font-variant-ligatures:no-common-ligatures;color:rgb(255,215,135)"><stdio.h></span><br></div><div style="font-size:12.800000190734863px"><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(255,215,135);background-color:rgb(18,18,18)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(98,98,98)"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(176,250,1)">#include </span><span style="font-variant-ligatures:no-common-ligatures"><stdlib.h></span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(176,250,1);background-color:rgb(18,18,18)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(98,98,98)"> </span><span style="font-variant-ligatures:no-common-ligatures">#include </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(255,215,135)"><mpi.h></span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(98,98,98);background-color:rgb(18,18,18)"><span style="font-variant-ligatures:no-common-ligatures">  </span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(229,229,229);background-color:rgb(18,18,18)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(98,98,98)">  </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(255,135,175)">int</span><span style="font-variant-ligatures:no-common-ligatures"> main(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(255,135,175)">int</span><span style="font-variant-ligatures:no-common-ligatures"> argc, </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(255,135,175)">char</span><span style="font-variant-ligatures:no-common-ligatures"> **argv) </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(255,215,95);background-color:rgb(39,39,39)">{</span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(229,229,229);background-color:rgb(18,18,18)"><span style="font-variant-ligatures:no-common-ligatures">    </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(255,135,175)">int</span><span style="font-variant-ligatures:no-common-ligatures"> buf, err;</span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(229,229,229);background-color:rgb(18,18,18)"><span style="font-variant-ligatures:no-common-ligatures">    MPI_File fh;</span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(229,229,229);background-color:rgb(18,18,18)"><span style="font-variant-ligatures:no-common-ligatures">    MPI_Status status;</span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(98,98,98);background-color:rgb(18,18,18)"><br></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(229,229,229);background-color:rgb(18,18,18)"><span style="font-variant-ligatures:no-common-ligatures">    MPI_Init(&argc, &argv);</span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(229,229,229);background-color:rgb(18,18,18)"><span style="font-variant-ligatures:no-common-ligatures">    </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(255,37,0)">if</span><span style="font-variant-ligatures:no-common-ligatures"> (argc != </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(175,135,95)">2</span><span style="font-variant-ligatures:no-common-ligatures">) {</span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(255,215,135);background-color:rgb(18,18,18)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(245,245,245)">        </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(229,229,229)">printf(</span><span style="font-variant-ligatures:no-common-ligatures">"Usage: </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(255,135,175)">%s</span><span style="font-variant-ligatures:no-common-ligatures"> filename</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(255,135,175)">\n</span><span style="font-variant-ligatures:no-common-ligatures">"</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(229,229,229)">, argv[</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(175,135,95)">0</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(229,229,229)">]);</span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(229,229,229);background-color:rgb(18,18,18)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(245,245,245)">        </span><span style="font-variant-ligatures:no-common-ligatures">MPI_Finalize();</span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(245,245,245);background-color:rgb(18,18,18)"><span style="font-variant-ligatures:no-common-ligatures">        </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(255,37,0)">return</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(229,229,229)"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(175,135,95)">1</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(229,229,229)">;</span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(229,229,229);background-color:rgb(18,18,18)"><span style="font-variant-ligatures:no-common-ligatures">    }</span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(229,229,229);background-color:rgb(18,18,18)"><span style="font-variant-ligatures:no-common-ligatures">    err = MPI_File_open(MPI_COMM_WORLD, argv[</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(175,135,95)">1</span><span style="font-variant-ligatures:no-common-ligatures">], MPI_MODE_CREATE |</span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(229,229,229);background-color:rgb(18,18,18)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(245,245,245)">                        </span><span style="font-variant-ligatures:no-common-ligatures">MPI_MODE_RDWR, MPI_INFO_NULL, &fh);</span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(229,229,229);background-color:rgb(18,18,18)"><span style="font-variant-ligatures:no-common-ligatures">    </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(255,37,0)">if</span><span style="font-variant-ligatures:no-common-ligatures"> (err != MPI_SUCCESS) printf(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(255,215,135)">"Error: MPI_File_open()</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(255,135,175)">\n</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(255,215,135)">"</span><span style="font-variant-ligatures:no-common-ligatures">);</span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(98,98,98);background-color:rgb(18,18,18)"><br></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(229,229,229);background-color:rgb(18,18,18)"><span style="font-variant-ligatures:no-common-ligatures">    err = MPI_File_write_all(fh, &buf, </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(175,135,95)">1</span><span style="font-variant-ligatures:no-common-ligatures">, MPI_INT, &status);</span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(229,229,229);background-color:rgb(18,18,18)"><span style="font-variant-ligatures:no-common-ligatures">    </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(255,37,0)">if</span><span style="font-variant-ligatures:no-common-ligatures"> (err != MPI_SUCCESS) printf(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(255,215,135)">"Error: MPI_File_write_all()</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(255,135,175)">\n</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(255,215,135)">"</span><span style="font-variant-ligatures:no-common-ligatures">);</span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(98,98,98);background-color:rgb(18,18,18)"><br></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(229,229,229);background-color:rgb(18,18,18)"><span style="font-variant-ligatures:no-common-ligatures">    MPI_File_close(&fh);</span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(229,229,229);background-color:rgb(18,18,18)"><span style="font-variant-ligatures:no-common-ligatures">    MPI_Finalize();</span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(255,37,0);background-color:rgb(18,18,18)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(98,98,98)"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(229,229,229)">   </span><span style="font-variant-ligatures:no-common-ligatures">return</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(229,229,229)"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(175,135,95)">0</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(229,229,229)">;</span></p><p style="margin:0px;font-size:14px;line-height:normal;font-family:monaco;color:rgb(98,98,98);background-color:rgb(18,18,18)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(255,215,95);background-color:rgb(39,39,39)">}</span></p></div></div>