UUPharmacometrics / PsN

Perl-Speaks-NONMEM
https://uupharmacometrics.github.io/PsN
GNU General Public License v2.0
65 stars 19 forks source link

parallel runs failed using execute from PsN (but successful using nmfe75 script) #259

Open JoannaPeng opened 5 months ago

JoannaPeng commented 5 months ago

I just installed the NONMEM license and PsN onto my new computer (Windows 11 Pro). I can do parallel runs using nmfe75 successfully using the command line below. The pnm file (mpiwini8.pnm) is the one that came with the NONMEM license without any modifications.

 nmfe75 control5.mod control5.lst -parafile=c:\nm75g64\run\mpiwini8.pnm [nodes]=4

But when I tried to do parallel runs using PsN using the command line below, there was only 1 run in parallel, so essentially the parallel runs (using 4 nodes) did not happen. How to fix this problem?

   execute control5.mod -parafile=c:\nm75g64\run\mpiwini8.pnm -nodes=4    

PsN parallel runs failed

rikardn commented 5 months ago

This is interesting. I am not sure about what is going on here.

One thing to check is what nmfe command PsN is actually using here. Unfortunately PsN does not store this in any files. Could you add the line print("NMFE COMMAND: ", $command, "\n"); in the file nonmemrun.pm at line 182? The file should be in your PsN lib installation directory. Try run the execute command above again and report the output.

JoannaPeng commented 5 months ago

Here is the output after adding the line to the file nonmemrun.pm at line 182:

image

Would appreciate your input!

rikardn commented 5 months ago

This seems to be in order. You could try running this exact command

C:\nm75g64/run/nmfe75.bat psn.mod psn.lst -background "-parafile=C:\nm75g64\run\mpiwini8.pnm" "[nodes]=4"

and see if it runs in parallel outside of PsN.

JoannaPeng commented 5 months ago

I ran the following command:

image

The command window showed the following, and there are "worker1", "worker2", and "worker3" folders as part of the output. So it did run in parallel outside of PsN.

image

rikardn commented 4 months ago

Thanks. This means that deeper debugging would be needed. I don't think this can be prioritized for the time being. Just out of curiosity: which MPI library did you install?

JoannaPeng commented 4 months ago

Understood. I have Microsoft MPI. Hope that answers your question about the MPI library.

rikardn commented 4 months ago

Ok, thanks for the feedback. I could be that Microsoft MPI has made it easier to use MPI on Windows and that running PsN with any MPI has never been properly tested before.