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
In questa pagina del sito puoi guardare il video online MPI in Java | Input from user through file della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Programmer for Life 07 febbraio 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 326 volte e gli è piaciuto 5 spettatori. Buona visione!