NONMEM Users Network Archive

Hosted by Cognigen

[NMusers] RE: Code lines for sequential runs through PsN

From: Rik Schoemaker <rik.schoemaker_at_occams.eu>
Date: Wed, 30 Mar 2016 09:22:06 +0000

Hi Matthew,

Use call execute in batch files to allow the process to return and continue=
 with the next line. If you have multiple processors, use the -threads argu=
ment to spread across your processors. This would make:

call execute -threads=8 xxxxxyyyyy_000001.mod ... xxxxxyyyyy_000300.mod
call execute -threads=8 xxxxxyyyyy_000301.mod ... xxxxxyyyyy_000600.mod
...etc...

Kind regards,

Rik


Rik Schoemaker, PhD
Occams
Malandolaan 10
1187 HE Amstelveen
The Netherlands
www.occams.eu<http://www.occams.eu/>
+31 20 441 6410
rik.schoemaker_at_occams.eu<mailto:rik.schoemaker_at_occams.eu>

[cid:image001.png_at_01D18A76.61EF9400]



From: owner-nmusers_at_globomaxnm.com [mailto:owner-nmusers_at_globomaxnm.com] On=
 Behalf Of HUI, Ka Ho
Sent: 30 March 2016 10:27
To: nmusers_at_globomaxnm.com
Subject: [NMusers] Code lines for sequential runs through PsN

Dear all,

I have some 10,000 to 100,000 simulation files to run through PsN so I type=
d in cmd something which looks like the following lines:

execute xxxxxyyyyy_000001.mod xxxxxyyyyy_000002.mod ... xxxxxyyyyy_030000.m=
od

But the string is too long in this case. So, I created a batch file which b=
reaks down the codes into 100 lines and hoped that each line will run seque=
ntially, which looks like:

execute xxxxxyyyyy_000001.mod xxxxxyyyyy_000002.mod ... xxxxxyyyyy_000300.m=
od
execute xxxxxyyyyy_000301.mod xxxxxyyyyy_000302.mod ... xxxxxyyyyy_000600.m=
od
execute xxxxxyyyyy_000601.mod xxxxxyyyyy_000602.mod ... xxxxxyyyyy_000900.m=
od
...
execute xxxxxyyyyy_029701.mod xxxxxyyyyy_029702.mod ... xxxxxyyyyy_030000.m=
od

The run started successful, unfortunately only the first line was run (so, =
the run stopped after the 300th file).
It would be troublesome to manually run these 100 lines one by one.
What would be an appropriate code for this purpose?

Thanks!
Matthew


image001.png
(image/png attachment: image001.png)

Received on Wed Mar 30 2016 - 05:22:06 EDT

The NONMEM Users Network is maintained by ICON plc. Requests to subscribe to the network should be sent to: nmusers-request_at_iconplc.com. Once subscribed, you may contribute to the discussion by emailing: nmusers@globomaxnm.com.