Hi all,
I would like to apply the multi-thread facilities of GAMS to my model to speed up my scenarios analysis. I checked the Grid facility available ( https://www.gams.com/latest/docs/UG_GridComputing.html) and applied it to my model. However, the collection loop with just 2 iclone instances never ends and had a problem to collect the output correctly. It aborted after hours with the error message below :
“*** Unexpected EInOutError
*** Msg=I/O error on write of file = ‘C:\Users\jzhong11.UOFI\Desktop\042419UpdatedToCluster\BAU051719_parallel.lst’: No space left on device”
I attached the log file in this post as well.
The structure of the model is simplified as below. I tested the set iteration with only 1 instance of iteration.
Parameter h(iclone) ‘model handles’;
Model.solveLink = 3;
Loop(iteration,
Loop(h(iclone), //submission loop
Parameter setup
Solve Model maximizing z using lp,
);
repeat
loop(iclone$handlecollect(h(iclone)), //collection loop
Collections
display$handleDelete(h(iclone)) ‘trouble deleting handles’ ;
h(iclone) = 0;
);
display$readyCollect(h, 500) ‘Problem waiting for next instance to complete’;
until card(iclone) = 0 ;
Model update other parameter for each iteration
);
Plus, I tried several other scenarios:
- without repeat and until loop, the model did not collect any output and finished the running.
- I turned off the grid option, the model did simple loops of those senarios, this toy model finished within 7 min.
I was wondering what causes the collection problem and how to collect the instance correctly with the grid facility?
Thank you in advance for your help!
BAU051719_parallel.log (12.1 KB)