Changeset c512d9 in git
- Timestamp:
- Nov 24, 2010, 6:55:59 PM (13 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 9c0b20a846fcd4420f63d7e2e4ecbe93ff3af9f4
- Parents:
- 74a91c91d8695bf1218f00ca8619a52439734742
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/modstd.lib
r74a91c9 rc512d9 75 75 int n = #[1]; 76 76 if(n >= ncols(I)) { n = ncols(I); } 77 if( (n > 1) && system("with","MP"))77 if(n > 1) 78 78 { 79 79 for(i = 1; i <= n - 1; i++) 80 80 { 81 link l(i) = "MPtcp:fork";82 //link l(i) = "ssi:fork";81 //link l(i) = "MPtcp:fork"; 82 link l(i) = "ssi:fork"; 83 83 open(l(i)); 84 84 … … 625 625 "USAGE: modStd(I); I ideal 626 626 ASSUME: If size(#) > 0, then # contains either 1, 2 or 4 integers such that 627 @* - #[1] is the number of available processors for the computation 628 (parallelization is just applicable using 32-bit Singular 629 version since MP-links are not compatible with 64-bit Singular 630 version), 627 @* - #[1] is the number of available processors for the computation, 631 628 @* - #[2] is an optional parameter for the exactness of the computation, 632 629 if #[2] = 1, the procedure computes a standard basis for sure, … … 684 681 { 685 682 int n1 = #[1]; 686 if((n1 > 1) && (1 - system("with","MP")))687 {688 "========================================================================";689 "There is no MP available on your system. Since this is necessary to ";690 "parallelize the algorithm, the computation will be done without forking.";691 "========================================================================";692 n1 = 1;693 }694 683 int exactness = 1; 695 684 int n2 = 10; … … 699 688 { 700 689 int n1 = #[1]; 701 if((n1 > 1) && (1 - system("with","MP")))702 {703 "========================================================================";704 "There is no MP available on your system. Since this is necessary to ";705 "parallelize the algorithm, the computation will be done without forking.";706 "========================================================================";707 n1 = 1;708 }709 690 int exactness = #[2]; 710 691 int n2 = 10; … … 714 695 { 715 696 int n1 = #[1]; 716 if((n1 > 1) && (1 - system("with","MP")))717 {718 "========================================================================";719 "There is no MP available on your system. Since this is necessary to ";720 "parallelize the algorithm, the computation will be done without forking.";721 "========================================================================";722 n1 = 1;723 }724 697 int exactness = #[2]; 725 698 int n2 = #[3]; … … 947 920 for(i = 1; i <= n1; i++) 948 921 { 949 link l(i) = "MPtcp:fork"; 922 //link l(i) = "MPtcp:fork"; 923 link l(i) = "ssi:fork"; 950 924 open(l(i)); 951 925 if((variant == 1) || (variant == 3) ||
Note: See TracChangeset
for help on using the changeset viewer.