[OMPI users] Add/remove "Event Listeners" in MPI?
What I want to achieve is something like: - root process listens to children process - children will listen to root for stop notification - children starts doing work - when 1st child completes, notify root - root then notifies all processes to stop How can I implement something like this in (Open)MPI/C++? Listen will be something similar to IRecv? But how do I cancel those IRecv later?
[OMPI users] MPI_Recv MPI_THREAD_MULTIPLE
I have a problem here. My program runs perfectly in MPI version 1.6 series, but it would run into some problem in MPI version 1.4x series. Does MPI 1.4x version have a bug related in MPI_Recv. The log in Node[1] says that "MPI_Recv in node[1] can not probe tag [11] from source[0]". But in node [0], the log says it Isend message with Tag [11] to dest [1]. int provided; MPI_Init_thread(&argc,&argv, MPI_THREAD_MULTIPLE,&provided);if(provided != MPI_THREAD_MULTIPLE){ printf("Sorry, your MPI library does not provide MPI_THREAD_MULTIPLE\n"); MPI_Abort(MPI_COMM_WORLD,0);} Both of my 1.6x and 1.4x library do not support MPI_THREAD_MULTIPLE. Is this the reason? But why it runs perfect with 1.6x version. Thanks very much for your help. Esaon
[OMPI users] What is the default install library for PATH and LD_LIBRARY_PATH
Hell all, I installed OpenMPI on my Ubuntu 64 bit desktop. At first, I did not specify "prefix", so even I've installed it. I could not find where it is. Since the "PATH" and "LD" have to be given, the mpicc can find the "lib open-pal.so.0" file. Thanks very much. Paul
Re: [OMPI users] MPI_Recv MPI_THREAD_MULTIPLE
On Tue, Nov 13, 2012 at 1:56 AM, 赵印 wrote: > I have a problem here. > > My program runs perfectly in MPI version 1.6 series, but it would run into > some problem in MPI version 1.4x series. *Does MPI 1.4x version have a > bug related in MPI_Recv.* > > The log in Node[1] says that "MPI_Recv in node[1] can not probe tag [11] > from source[0]". But in node [0], the log says it Isend message with Tag > [11] to dest [1]. > > int provided; > > MPI_Init_thread(&argc, &argv, MPI_THR! > EAD_MULTIPLE, &provided);if (provided != MPI_THREAD_MULTIPLE){ >printf("Sorry, your MPI library does not provide MPI_THREAD_MULTIPLE\n"); >MPI_Abort(MPI_COMM_WORLD, 0);} > > *Both of my 1.6x and 1.4x library do not support MPI_THREAD_MULTIPLE. Is > this the reason? But why it runs perfect with 1.6x version. * > > Thanks very much for your help. > > > Esaon > > > You need to build openmpi by configuring it with the multi-threading flags. Something like --enable-mpi-thread-multiple. Most distributions ship openmpi built without these flags. Brian
Re: [OMPI users] What is the default install library for PATH and LD_LIBRARY_PATH
Am 13.11.2012 um 15:44 schrieb huaibao zhang: > I installed OpenMPI on my Ubuntu 64 bit desktop. At first, I did not specify > "prefix", so even I've installed it. I could not find where it is. Since the > "PATH" and "LD" have to be given, the mpicc can find the "lib open-pal.so.0" > file. You mean "...can't find..."? If you use the default location, it should have the correct settings already even without adding any path to PATH or LD_LIBRARY_PATH. You can use: $ find /lib -name "libopen-pal.so.0" to spot the location. But I wonder about the version. The actual one seems to be libopen-pal.so.4 -> libopen-pal.so.4.0.3 - which version are you using? -- Reuti
Re: [OMPI users] What is the default install library for PATH and LD_LIBRARY_PATH
Hi Reuti, Thanks for your answer. I really appreciate it. I am using an old version 1.4.3. for my code. If I only type $./configure, it will compile, but I have no idea where it is installed. I typed $ find /lib -name "libopen-pal.so.0", but it shows nothing. Do you thinks it is caused since I am not a root user or the old version. Thanks, Paul -- Huaibao (Paul) Zhang Gas Surface Interactions Lab Department of Mechanical Engineering University of Kentucky, Lexington, KY, 40506-0503 Office: 216 Ralph G. Anderson Building Web:gsil.engineering.uky.edu On Nov 13, 2012, at 12:24 PM, Reuti wrote: > Am 13.11.2012 um 15:44 schrieb huaibao zhang: > >> I installed OpenMPI on my Ubuntu 64 bit desktop. At first, I did not specify >> "prefix", so even I've installed it. I could not find where it is. Since the >> "PATH" and "LD" have to be given, the mpicc can find the "lib open-pal.so.0" >> file. > > You mean "...can't find..."? If you use the default location, it should have > the correct settings already even without adding any path to PATH or > LD_LIBRARY_PATH. > > You can use: > > $ find /lib -name "libopen-pal.so.0" > > to spot the location. But I wonder about the version. The actual one seems to > be libopen-pal.so.4 -> libopen-pal.so.4.0.3 - which version are you using? > > -- Reuti > ___ > users mailing list > us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/users
Re: [OMPI users] What is the default install library for PATH and LD_LIBRARY_PATH
Am 13.11.2012 um 19:26 schrieb huaibao zhang: > Hi Reuti, > > Thanks for your answer. I really appreciate it. > I am using an old version 1.4.3. for my code. If I only type $./configure, > it will compile Well, it will "configure", but afterwards you need `make` and `make install`. If you are not the root user, you will likely prefer to install it in your own home directory with options like: $ ./configure --prefix=$HOME/local/openmpi-1.4.3 $ make $ make install Any reason not to use the latest version? -- Reuti > , but I have no idea where it is installed. I typed $ find /lib -name > "libopen-pal.so.0", but it shows nothing. Do you thinks it is caused since I > am not a root user or the old version. > > Thanks, > Paul > > -- > Huaibao (Paul) Zhang > Gas Surface Interactions Lab > Department of Mechanical Engineering > University of Kentucky, > Lexington, KY, 40506-0503 > Office: 216 Ralph G. Anderson Building > Web:gsil.engineering.uky.edu > > On Nov 13, 2012, at 12:24 PM, Reuti wrote: > >> Am 13.11.2012 um 15:44 schrieb huaibao zhang: >> >>> I installed OpenMPI on my Ubuntu 64 bit desktop. At first, I did not >>> specify "prefix", so even I've installed it. I could not find where it is. >>> Since the "PATH" and "LD" have to be given, the mpicc can find the "lib >>> open-pal.so.0" file. >> >> You mean "...can't find..."? If you use the default location, it should have >> the correct settings already even without adding any path to PATH or >> LD_LIBRARY_PATH. >> >> You can use: >> >> $ find /lib -name "libopen-pal.so.0" >> >> to spot the location. But I wonder about the version. The actual one seems >> to be libopen-pal.so.4 -> libopen-pal.so.4.0.3 - which version are you using? >> >> -- Reuti >> ___ >> users mailing list >> us...@open-mpi.org >> http://www.open-mpi.org/mailman/listinfo.cgi/users > > ___ > users mailing list > us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/users
Re: [OMPI users] What is the default install library for PATH and LD_LIBRARY_PATH
I just checked. It it libopen-pal.so.0 -> libopen-pal.so.0.0.0 -- Huaibao (Paul) Zhang Gas Surface Interactions Lab Department of Mechanical Engineering University of Kentucky, Lexington, KY, 40506-0503 Office: 216 Ralph G. Anderson Building Web:gsil.engineering.uky.edu On Nov 13, 2012, at 12:24 PM, Reuti wrote: > Am 13.11.2012 um 15:44 schrieb huaibao zhang: > >> I installed OpenMPI on my Ubuntu 64 bit desktop. At first, I did not specify >> "prefix", so even I've installed it. I could not find where it is. Since the >> "PATH" and "LD" have to be given, the mpicc can find the "lib open-pal.so.0" >> file. > > You mean "...can't find..."? If you use the default location, it should have > the correct settings already even without adding any path to PATH or > LD_LIBRARY_PATH. > > You can use: > > $ find /lib -name "libopen-pal.so.0" > > to spot the location. But I wonder about the version. The actual one seems to > be libopen-pal.so.4 -> libopen-pal.so.4.0.3 - which version are you using? > > -- Reuti > ___ > users mailing list > us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/users
Re: [OMPI users] What is the default install library for PATH and LD_LIBRARY_PATH
./configure does not compile, but generates the Makefile. Did you run > make > make install after running ./configure? Notice also that openmpi can very likely be already installed on your system from ubuntu packages; anyway, I suggest you use ubuntu packages rather than compiling from sources unless you have a very good reason not to use the packaged version. you can also quite safely re-run make install to see where the libraries are going to. If you're unsure which version of openmpi you have, you can start from > which mpicc > mpicc --showme Z Koza 2012/11/13 huaibao zhang : > Hi Reuti, > > Thanks for your answer. I really appreciate it. > I am using an old version 1.4.3. for my code. If I only type $./configure, > it will compile, but I have no idea where it is installed. I typed $ find > /lib -name "libopen-pal.so.0", but it shows nothing. Do you thinks it is > caused since I am not a root user or the old version. > > Thanks, > Paul > > -- > Huaibao (Paul) Zhang > Gas Surface Interactions Lab > Department of Mechanical Engineering > University of Kentucky, > Lexington, KY, 40506-0503 > Office: 216 Ralph G. Anderson Building > Web:gsil.engineering.uky.edu > > On Nov 13, 2012, at 12:24 PM, Reuti wrote: > > Am 13.11.2012 um 15:44 schrieb huaibao zhang: > > I installed OpenMPI on my Ubuntu 64 bit desktop. At first, I did not specify > "prefix", so even I've installed it. I could not find where it is. Since the > "PATH" and "LD" have to be given, the mpicc can find the "lib open-pal.so.0" > file. > > > You mean "...can't find..."? If you use the default location, it should have > the correct settings already even without adding any path to PATH or > LD_LIBRARY_PATH. > > You can use: > > $ find /lib -name "libopen-pal.so.0" > > to spot the location. But I wonder about the version. The actual one seems > to be libopen-pal.so.4 -> libopen-pal.so.4.0.3 - which version are you > using? > > -- Reuti > ___ > users mailing list > us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/users > > > > ___ > users mailing list > us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/users
Re: [OMPI users] What is the default install library for PATH and LD_LIBRARY_PATH
Koza, Thanks a lot for your help. It is indeed installed already. The version is 1.4.3 Paul -- Huaibao (Paul) Zhang Gas Surface Interactions Lab Department of Mechanical Engineering University of Kentucky, Lexington, KY, 40506-0503 Office: 216 Ralph G. Anderson Building Web:gsil.engineering.uky.edu On Nov 13, 2012, at 1:44 PM, Zbigniew Koza wrote: > ./configure does not compile, but generates the Makefile. > > Did you run >> make >> make install > after running ./configure? > > Notice also that openmpi can very likely be already installed on your > system from ubuntu packages; > anyway, I suggest you use ubuntu packages rather than compiling from > sources unless you have a > very good reason not to use the packaged version. > > you can also quite safely re-run make install to see where the > libraries are going to. > > If you're unsure which version of openmpi you have, you can start from >> which mpicc >> mpicc --showme > > > > Z Koza > > 2012/11/13 huaibao zhang : >> Hi Reuti, >> >> Thanks for your answer. I really appreciate it. >> I am using an old version 1.4.3. for my code. If I only type $./configure, >> it will compile, but I have no idea where it is installed. I typed $ find >> /lib -name "libopen-pal.so.0", but it shows nothing. Do you thinks it is >> caused since I am not a root user or the old version. >> >> Thanks, >> Paul >> >> -- >> Huaibao (Paul) Zhang >> Gas Surface Interactions Lab >> Department of Mechanical Engineering >> University of Kentucky, >> Lexington, KY, 40506-0503 >> Office: 216 Ralph G. Anderson Building >> Web:gsil.engineering.uky.edu >> >> On Nov 13, 2012, at 12:24 PM, Reuti wrote: >> >> Am 13.11.2012 um 15:44 schrieb huaibao zhang: >> >> I installed OpenMPI on my Ubuntu 64 bit desktop. At first, I did not specify >> "prefix", so even I've installed it. I could not find where it is. Since the >> "PATH" and "LD" have to be given, the mpicc can find the "lib open-pal.so.0" >> file. >> >> >> You mean "...can't find..."? If you use the default location, it should have >> the correct settings already even without adding any path to PATH or >> LD_LIBRARY_PATH. >> >> You can use: >> >> $ find /lib -name "libopen-pal.so.0" >> >> to spot the location. But I wonder about the version. The actual one seems >> to be libopen-pal.so.4 -> libopen-pal.so.4.0.3 - which version are you >> using? >> >> -- Reuti >> ___ >> users mailing list >> us...@open-mpi.org >> http://www.open-mpi.org/mailman/listinfo.cgi/users >> >> >> >> ___ >> users mailing list >> us...@open-mpi.org >> http://www.open-mpi.org/mailman/listinfo.cgi/users > ___ > users mailing list > us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/users