java - Exception while calling MPI.Init(args) -


i started using mpjexpress on windows. did configurations mentioned in document windows

ran small program :-

import mpi.*;  public class helloworld {     public static void main(string args[]) throws exception {         mpi.init(args);         int me = mpi.comm_world.rank();         int size = mpi.comm_world.size();         system.out.println("hi <" + me + ">");         mpi.finalize();     } } 

and when run error :-

exception in thread "main" mpi.mpiexception: usage: java mpi <myrank> <conf_file> <device_name> conf_file can be, ../conf/xdev.conf <local>or http://holly.dsg.port.ac.uk:15000/xdev.conf <remote>     @ mpi.mpi.init(mpi.java:232) 

there no xdev.conf file in ../conf/xdev.conf (i checked previous mpjexpress versions) http://holly.dsg.port.ac.uk:15000/xdev.conf not reachable

when see code mpjdev.java see if

(args.length < 3) {        throw new mpjdevexception("usage: " +          "java mpjdev <myrank> <conf_file> <device_name>"        +"conf_file can be, ../conf/xdev.conf <local>"        +"or http://holly.dsg.port.ac.uk:15000/xdev.conf <remote>");      } 

what doing wrong, above exception. looks args.length less 3, above exception. how can rectify ?

@aadityachauhan cannot run mpj express applications using run java application option. need pass arguments in vm arguments section. can @ first half of youtube video tutorial run mpj express eclipse.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -