In this video, I will tell you how to input the data required for the code from the file which is useful because in many cases the parallel programs deal with large amounts of data and it really is convinient to just input the filename using command line as input.
Check out the code examples used in this tutorial :-
https://github.com/varunngoyal/MPI-in...
Jump to code sections directly : -
1:03 - 1:20 - input file
1:20 - 3:00 - getting the data size
3:01 - 4:37 - taking input from file
4:37 - 7:07 - defining the chunk size
7:48 - 8:05 - importing the libraries
8:06 - 8:43 - final changes
8:44 - 11:00 - code execution
If you love this video, please show your support by subscribing to my channel.
Steps for executing code -
1. exporting the MPJ_HOME variable
export MPJ_HOME=--pathtompjhome--
2. compille
javac -cp $MPJ_HOME/lib/mpj.jar filename.java
3. run
$MPJ_HOME/bin/mpjrun.sh -np 4 filename data_file.txt
Auf dieser Seite können Sie das Online-Video MPI in Java | Input from user through file mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Programmer for Life 07 Februar 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 326 Mal angesehen und es wurde von 5 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!