> Hello,
> I'm a student and I'm trying to use MPI for my thesis project.
> My program is composed by a master (C++) which calls different slaves
> (C++),
> Since the master is not really used after the first run, the teacher
> suggested me
> to put in the same node (level) the master with one slave. Hence, if I
> need three
> slaves, I am using 3 nodes. Besides, each slaves calls a fortran MPI
> program
> and each node of the machine is 4 processors, hence each node is using
> between 1 - 4 processors.
>
> If I run with one slave, the simulation takes 30 days, with
> 3 slaves it takes 10 days. If I run with 4 processors in fortran and 3
> slaves it takes
> 30 days, if fortran has 8 processors the entire simulation will take 15
> days to finish.
> I have more or less 10 days to run the simulation and take the results, I
> should use one of the
> two ways: more fortran processors (easy to change for me) or 3 slaves.
> My problem is that, if I run with one slave, the program works and without
> any problem,
> if I add the slaves, the output provided by fortran is not readable by C++
> (even if it is printed)
> and if I put 3 slaves, they add themselves in the first node which implies
> that I'll end up with one node
> with a load of 12 and the other two nodes unloaded.
> I attach here the SCRIPTS that I tried to use.
> If I use SCRIPT_1 fortran saves in the folder the file I require but C++
> doesn't read
> the file when necessary, hence doesn't do its job.
> If I use SCRIPT_2, fortran doesn't save in the folder the files and,
> naturally, C++
> cannot find them, consequently cannot make its calculations.
>
> I was thinkking that the cause of the insucces of SCRIPT_1 is related to
> the big quantity of data changing
> in one node, so it doesn't have the time to process everything, when C++
> calls, it hasn't finished yet to write.
> In fact, not all the print on screen are reported.
>
> The C++ code doesn't have any MPI command, apart from the run, I don't
> know if it is useful to put some commands
> in order to obtain all the calcualtions in order or if the problem I have
> is related not to the SCRIPT but to the codes
>
>I attach the MAKEFILE so that you can see how the 3 codes (slave, master
>and fortran) are related and if there is any flag to add
>
> Thank you very much for any suggestion
>
> Antonio
>
- application/octet-stream attachment: Makefile
|