Looks to me like there is a bug in the orterun parser that is trying to add java library paths - I can take a look at it
> On May 23, 2016, at 1:05 PM, Claudio Stamile <claudiostam...@gmail.com> wrote: > > Hi Howard. > > Thank you for your reply. > > I'm using version 1.10.2 > > I executed the following command: > > mpirun -np 2 --mca odls_base_verbose 100 java -cp alot:of:jarfile > -Djava.library.path=/Users/stamile/Applications/IBM/ILOG/CPLEX_Studio1263/cplex/bin/x86-64_osx > clustering.TensorClusterinCplexMPI > > > the output is: > Num procs: 2 FirstRank: 0 Recovery: DEFAULT Max Restarts: 0 > > Argv[0]: java > > Argv[1]: -cp > > Argv[2]: > /Applications/Eclipse.app/Contents/MacOS:/Users/stamile/Documents/workspace_newJava/TensorFactorization/bin:/Users/stamile/Applications/IBM/ILOG/CPLEX_Studio1263/cplex/lib/cplex.jar:/Users/stamile/Downloads/commons-lang3-3.4/commons-lang3-3.4.jar:/Users/stamile/Downloads/Jama-1.0.3.jar:/Users/stamile/Downloads/hyperdrive-master/hyperdrive.jar:/usr/local/lib:/usr/local/lib/mpi.jar > > Argv[3]: > /Users/stamile/Applications/IBM/ILOG/CPLEX_Studio1263/cplex/bin/x86-64_osx > > Argv[4]: > -Djava.library.path=-Djava.library.path=/Users/stamile/Applications/IBM/ILOG/CPLEX_Studio1263/cplex/bin/x86-64_osx:/usr/local/lib > > Argv[5]: clustering.TensorClusterinCplexMPI > > Env[0]: OMPI_MCA_odls_base_verbose=100 > > Env[1]: OMPI_COMMAND=clustering.TensorClusterinCplexMPI > > Env[2]: > OMPI_MCA_orte_precondition_transports=e6a8891c458c267b-c079810b4abe7ebf > > Env[3]: OMPI_MCA_orte_peer_modex_id=0 > > Env[4]: OMPI_MCA_orte_peer_init_barrier_id=1 > > Env[5]: OMPI_MCA_orte_peer_fini_barrier_id=2 > > Env[6]: TMPDIR=/var/folders/5t/6tqp003x4fn09fzgtx46tjdh0000gn/T/ > > > > Argv[4] looks strange. Indeed if I execute: > > mpirun -np 2 --mca odls_base_verbose 100 java -cp alot:of:jarfile > clustering.TensorClusterinCplexMPI > > The same as before without ( > -Djava.library.path=/Users/stamile/Applications/IBM/ILOG/CPLEX_Studio1263/cplex/bin/x86-64_osx > ) i obtain: > > Argv[0]: java > > Argv[1]: -Djava.library.path=/usr/local/lib > > Argv[2]: -cp > > Argv[3]: > /Applications/Eclipse.app/Contents/MacOS:/Users/stamile/Documents/workspace_newJava/TensorFactorization/bin:/Users/stamile/Applications/IBM/ILOG/CPLEX_Studio1263/cplex/lib/cplex.jar:/Users/stamile/Downloads/commons-lang3-3.4/commons-lang3-3.4.jar:/Users/stamile/Downloads/Jama-1.0.3.jar:/Users/stamile/Downloads/hyperdrive-master/hyperdrive.jar:/usr/local/lib:/usr/local/lib/mpi.jar > > Argv[4]: clustering.TensorClusterinCplexMPI > > Env[0]: OMPI_MCA_odls_base_verbose=100 > > Env[1]: OMPI_COMMAND=clustering.TensorClusterinCplexMPI > > Env[2]: > OMPI_MCA_orte_precondition_transports=92248561306f2b2e-601ae65dc34a347c > > Env[3]: OMPI_MCA_orte_peer_modex_id=0 > > Env[4]: OMPI_MCA_orte_peer_init_barrier_id=1 > > Env[5]: OMPI_MCA_orte_peer_fini_barrier_id=2 > > Env[6]: TMPDIR=/var/folders/5t/6tqp003x4fn09fzgtx46tjdh0000gn/T/ > > Env[7]: __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x4 > > > > What do you think ? > > Best, > > Claudio > > > 2016-05-23 19:38 GMT+02:00 Howard Pritchard <hpprit...@gmail.com > <mailto:hpprit...@gmail.com>>: > Hello Claudio, > > mpirun should be combining your java.library.path option with the one needed > to add > the Open MPI's java bindings as well. > > Which version of Open MPI are you using? > > Could you first try to compile the Ring.java code in ompi/examples and run it > with the > following additional mpirun parameter? > > mpirun -np 1 --mca odls_base_verbose 100 java Ring > > then try your application with the same "odls_base_verbose" mpirun option > > and post the output from the two runs to the mail list? > > I suspect there may be a bug with building the combined java.library.path > in the Open MPI code. > > Howard > > > 2016-05-23 9:47 GMT-06:00 Claudio Stamile <claudiostam...@gmail.com > <mailto:claudiostam...@gmail.com>>: > Dear all, > > I'm using openmpi for Java. > I've a problem when I try to use more option parameters in my java command. > More in detail I run mpirun as follow: > > mpirun -n 5 java -cp path1:path2 -Djava.library.path=pathLibs > classification.MyClass > > It seems that the option "-Djava.library.path" is ignored when i execute the > command. > > Is it normal ? > > Do you know how to solve this problem ? > > Thank you. > > Best, > Claudio > > -- > C. > > _______________________________________________ > users mailing list > us...@open-mpi.org <mailto:us...@open-mpi.org> > Subscription: https://www.open-mpi.org/mailman/listinfo.cgi/users > <https://www.open-mpi.org/mailman/listinfo.cgi/users> > Link to this post: > http://www.open-mpi.org/community/lists/users/2016/05/29285.php > <http://www.open-mpi.org/community/lists/users/2016/05/29285.php> > > > _______________________________________________ > users mailing list > us...@open-mpi.org <mailto:us...@open-mpi.org> > Subscription: https://www.open-mpi.org/mailman/listinfo.cgi/users > <https://www.open-mpi.org/mailman/listinfo.cgi/users> > Link to this post: > http://www.open-mpi.org/community/lists/users/2016/05/29288.php > <http://www.open-mpi.org/community/lists/users/2016/05/29288.php> > > > > -- > C. > _______________________________________________ > users mailing list > us...@open-mpi.org > Subscription: https://www.open-mpi.org/mailman/listinfo.cgi/users > Link to this post: > http://www.open-mpi.org/community/lists/users/2016/05/29292.php