Changeset ed9df0 in git for Singular/LIB/parallel.lib
- Timestamp:
- Apr 12, 2013, 12:53:26 PM (11 years ago)
- Branches:
- (u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
- Children:
- 9feb899ed7c9fb83b7268e98afca5dddad081970
- Parents:
- 1b2216d2c860dbf849acc8cd3cfcfea342b7cf5b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/parallel.lib
r1b2216 red9df0 47 47 48 48 Supported linktypes are up to now \"ssi\" and \"mp\", see 49 @ref{Ssi links} and @ref{MP links}.49 @ref{Ssi links}. 50 50 51 51 Servers: … … 72 72 finished \"at the same time\". It may contain less than N results in 73 73 the case of timeout or errors occurring. 74 @* MP links do not work with a 64 bit version of Singular. If you want75 to use MP links, make sure that MP is available. This can be checked76 by the Singular command @code{system(\"with\", \"MP\");}.77 74 @* The check whether the jobs exceed the memory sizes given by 78 75 maxmemory is only done from time to time. This feature is 79 76 experimental and should be used with care. 80 SEE ALSO: Ssi links, MP links,waitfirst, waitall77 SEE ALSO: Ssi links, waitfirst, waitall 81 78 KEYWORDS: parallelWaitN; Parallelization; Links, user interface; 82 79 Skeletons for parallelization; Distributed computing … … 198 195 else 199 196 { 200 if(linktype == "ssi")201 {197 //if(linktype == "ssi") 198 //{ 202 199 link lcpu(i) = "ssi:tcp "+servers[i][1]+":"+servers[i][3]; 203 } 204 else 205 { 206 if(program == "") 207 { 208 link lcpu(i) = "MPtcp:launch+" --MPhost "+servers[i][1]; 209 } 210 else 211 { 212 link lcpu(i) = "MPtcp:launch+" --MPhost "+servers[i][1] 213 +" --MPapplication "+servers[i][3]; 214 } 215 } 200 //} 216 201 open(lcpu(i)); 217 202 write(lcpu(i), quote(system("cpu"))); … … 296 281 if(server == "localhost") 297 282 { 298 if(linktype == "ssi")299 {283 //if(linktype == "ssi") 284 //{ 300 285 link l(k) = "ssi:fork"; 301 } 302 else 303 { 304 link l(k) = "MPtcp:fork"; 305 } 286 //} 306 287 } 307 288 else 308 289 { 309 if(linktype == "ssi")310 {290 //if(linktype == "ssi") 291 //{ 311 292 link l(k) = "ssi:tcp "+server+":"+program; 312 } 313 else 314 { 315 if(program == "") 316 { 317 link l(k) = "MPtcp:launch+" --MPhost "+server; 318 } 319 else 320 { 321 link l(k) = "MPtcp:launch+" --MPhost "+server 322 +" --MPapplication "+program; 323 } 324 } 293 //} 325 294 } 326 295 open(l(k)); … … 333 302 if(havemaxmem) 334 303 { 335 if(linktype == "ssi")336 {304 //if(linktype == "ssi") 305 //{ 337 306 link mempatrol = "ssi:fork"; 338 } 339 else 340 { 341 link mempatrol = "MPtcp:fork"; 342 } 307 //} 343 308 open(mempatrol); 344 309 write(mempatrol, quote(watchlinks())); … … 582 547 @ref{parallelWaitN} for details on optional arguments and other 583 548 remarks. 584 SEE ALSO: Ssi links, MP links,waitfirst549 SEE ALSO: Ssi links, waitfirst 585 550 KEYWORDS: parallelWaitFirst; Parallelization; Links, user interface; 586 551 Skeletons for parallelization; Distributed computing … … 614 579 If commands is of type string, this is a shortcut for a list of size 615 580 @code{size(args)} whose entries are just this string. 616 SEE ALSO: Ssi links, MP links,waitall581 SEE ALSO: Ssi links, waitall 617 582 KEYWORDS: parallelWaitAll; Parallelization; Links, user interface; 618 583 Skeletons for parallelization; Distributed computing
Note: See TracChangeset
for help on using the changeset viewer.