diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-02-02 01:39:05 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-02-02 01:39:05 +0000 |
commit | fcc5224904648a8e6eb528d7603154160a20022f (patch) | |
tree | 3bfce096b38a9cea8eed13fc70c1526c456e9abd /sci-biology/tree-puzzle | |
parent | 2fd57282f0262ca084e05b0f2c63fbada395d02b (diff) |
gentoo resync : 02.02.2022
Diffstat (limited to 'sci-biology/tree-puzzle')
-rw-r--r-- | sci-biology/tree-puzzle/Manifest | 3 | ||||
-rw-r--r-- | sci-biology/tree-puzzle/files/tree-puzzle-5.2-MPI-3.0.patch | 362 | ||||
-rw-r--r-- | sci-biology/tree-puzzle/tree-puzzle-5.2.ebuild | 25 |
3 files changed, 377 insertions, 13 deletions
diff --git a/sci-biology/tree-puzzle/Manifest b/sci-biology/tree-puzzle/Manifest index 4b698c6a885b..95db460be96a 100644 --- a/sci-biology/tree-puzzle/Manifest +++ b/sci-biology/tree-puzzle/Manifest @@ -1,4 +1,5 @@ +AUX tree-puzzle-5.2-MPI-3.0.patch 15029 BLAKE2B 368eb7e3d209515a94f1049da80ebf9f14824e44e8c0b1996ba9c5ac7bfd58c167c01582bbc0d058a57d9797d844ad32e8bf45ce921a13c6e217d7728564a4d7 SHA512 576ed6c4a96225d55a1def0c4912cf908d0225d9ad9f9e0974a98f24d8bce172406a11202b9656c23661f6bb27b51a0b4e3bf95634b3c11aa10c20cd9d68e648 AUX tree-puzzle-impl-dec.patch 380 BLAKE2B 22c00e2e0b4682a98212ec0b6e941ac37eff4cdeb8f684dc607e80a1617a35e209d23ac739af0e69af91deb8122fe04c3f9e7bdbd0c54edd8e603a817bdf0848 SHA512 092743fff8a305a41ef55afde3e058c1892d9c608bd05cb87de38a451c2b9cafc7749825347d5c245f1c6b1e84cf9d28b63bd4e7389440da5604766412290110 DIST tree-puzzle-5.2.tar.gz 875142 BLAKE2B aa13e9a7aa403c12aebefb94a1931baa8b17cbee56d20011cb06db5a7b1b7f78c719ed6c6bfb0b79e47dc652d7b984415694907fc6cd56bdbe9eebca4aaa96a8 SHA512 5b9a729b120cba59f59ba426acd439cf396826ea01e75361b23387ccb9baf295d2512f21af96071a5f7b7507db4ff4d6b135cf6c5b6233a8b438532d31abe751 -EBUILD tree-puzzle-5.2.ebuild 1290 BLAKE2B e02eee43fabed81ca8d164630aa720365eb1cdab5660b878a750138b4dbdda42e3d04da4b0f3f404b45852e26c5ec56f005aa54cedfdf63d4e98718b2f0be145 SHA512 fa04a780ca5680424507123a007856fd442245812b03621efb29215bb8b651d19d5874904a6f4791d446f95f97cee676c2ac33554d4b893ed7068e3ecb70eb1e +EBUILD tree-puzzle-5.2.ebuild 1122 BLAKE2B 98582441713aa9afc4bdb69311f219588954046e759a680c936ef2174ef3b0e6ec572feab87aaf3f1cd9bb02db497a5df19a4bef0a096c961fc3f8e3b579a8f5 SHA512 7db6341bc1a12a2278fbcca1a8ca5080249c6453c497c6493923b295a971f168eeb2e1c8796444ae23872e362347151366c3243f8c786e9bf7a6ede48832af4f MISC metadata.xml 1556 BLAKE2B 1f8b1d4719d156e9a9783adce70d8f4c0c17a7c855e5590bc796e16062066883a27f780946edaffdc04eb6f640ac7e81d71b075ebc5ed9759c2a5d4da20ac46e SHA512 07bd436f7616301172b07fefd72390a46778098baa3e9db949169850a60cd40e27a0e58dcafe5689923bc1e7cebb4e317a291f5caf2750651b76c447f5799215 diff --git a/sci-biology/tree-puzzle/files/tree-puzzle-5.2-MPI-3.0.patch b/sci-biology/tree-puzzle/files/tree-puzzle-5.2-MPI-3.0.patch new file mode 100644 index 000000000000..66e3e6482338 --- /dev/null +++ b/sci-biology/tree-puzzle/files/tree-puzzle-5.2-MPI-3.0.patch @@ -0,0 +1,362 @@ +https://bugs.gentoo.org/690900 +rename MPI 1.0 to 3.0+ functions: +- MPI_Address -> MPI_Get_address +- MPI_Type_struct -> MPI_Type_create_struct + +--- a/src/ppuzzle.c ++++ b/src/ppuzzle.c +@@ -297,13 +297,13 @@ + else MPI_Recv(&dummy, 0, MPI_INT, PP_MyMaster, PP_UPDATEEEI, PP_Comm, &stat); + + Dtypes[0] = MPI_DOUBLE; Dtypelens[0] = tpmradix; +- MPI_Address(&(Eval[0]), &(Dtypeaddr[0])); ++ MPI_Get_address(&(Eval[0]), &(Dtypeaddr[0])); + Dtypes[1] = MPI_DOUBLE; Dtypelens[1] = tpmradix * tpmradix; +- MPI_Address(&(Evec[0][0]), &(Dtypeaddr[1])); ++ MPI_Get_address(&(Evec[0][0]), &(Dtypeaddr[1])); + Dtypes[2] = MPI_DOUBLE; Dtypelens[2] = tpmradix * tpmradix; +- MPI_Address(&(Ievc[0][0]), &(Dtypeaddr[2])); ++ MPI_Get_address(&(Ievc[0][0]), &(Dtypeaddr[2])); + +- MPI_Type_struct(3, Dtypelens, Dtypeaddr, Dtypes, &PP_Data); ++ MPI_Type_create_struct(3, Dtypelens, Dtypeaddr, Dtypes, &PP_Data); + MPI_Type_commit(&PP_Data); + + MPI_Bcast (MPI_BOTTOM, 1, PP_Data, PP_MyMaster, PP_Comm); +@@ -341,19 +341,19 @@ + double* DMVector = new_dvector(jobs); + + Dtypes[0] = MPI_DOUBLE; Dtypelens[0] = jobs; +- MPI_Address(&(DMVector[0]), &(Dtypeaddr[0])); ++ MPI_Get_address(&(DMVector[0]), &(Dtypeaddr[0])); + Dtypes[1] = MPI_DOUBLE; Dtypelens[1] = numcats; +- MPI_Address(&(Rates[0]), &(Dtypeaddr[1])); ++ MPI_Get_address(&(Rates[0]), &(Dtypeaddr[1])); + Dtypes[2] = MPI_DOUBLE; Dtypelens[2] = 1; +- MPI_Address(&(fracinv), &(Dtypeaddr[2])); ++ MPI_Get_address(&(fracinv), &(Dtypeaddr[2])); + Dtypes[3] = MPI_DOUBLE; Dtypelens[3] = tpmradix; +- MPI_Address(&(Eval[0]), &(Dtypeaddr[3])); ++ MPI_Get_address(&(Eval[0]), &(Dtypeaddr[3])); + Dtypes[4] = MPI_DOUBLE; Dtypelens[4] = tpmradix * tpmradix; +- MPI_Address(&(Evec[0][0]), &(Dtypeaddr[4])); ++ MPI_Get_address(&(Evec[0][0]), &(Dtypeaddr[4])); + Dtypes[5] = MPI_DOUBLE; Dtypelens[5] = tpmradix * tpmradix; +- MPI_Address(&(Ievc[0][0]), &(Dtypeaddr[5])); ++ MPI_Get_address(&(Ievc[0][0]), &(Dtypeaddr[5])); + +- MPI_Type_struct(6, Dtypelens, Dtypeaddr, Dtypes, &PP_Data); ++ MPI_Type_create_struct(6, Dtypelens, Dtypeaddr, Dtypes, &PP_Data); + MPI_Type_commit(&PP_Data); + + if (PP_IamMaster) { +@@ -719,10 +719,10 @@ + #endif + doubles[0] = frconst; + +- MPI_Address(ints, Dtypeaddr); +- MPI_Address(doubles, (Dtypeaddr+1)); ++ MPI_Get_address(ints, Dtypeaddr); ++ MPI_Get_address(doubles, (Dtypeaddr+1)); + +- MPI_Type_struct(2, Dtypelens, Dtypeaddr, Dtypes, &PP_Sizes); ++ MPI_Type_create_struct(2, Dtypelens, Dtypeaddr, Dtypes, &PP_Sizes); + MPI_Type_commit(&PP_Sizes); + + for (dest=1; dest<PP_NumProcs; dest++) { +@@ -797,10 +797,10 @@ + fprintf(STDOUT, "(%2d) Receiving Sizes ...\n", PP_Myid); + # endif /* PVERBOSE3 */ + +- MPI_Address(ints, Dtypeaddr); +- MPI_Address(doubles, (Dtypeaddr+1)); ++ MPI_Get_address(ints, Dtypeaddr); ++ MPI_Get_address(doubles, (Dtypeaddr+1)); + +- MPI_Type_struct(2, Dtypelens, Dtypeaddr, Dtypes, &PP_Sizes); ++ MPI_Type_create_struct(2, Dtypelens, Dtypeaddr, Dtypes, &PP_Sizes); + MPI_Type_commit(&PP_Sizes); + + error = MPI_Probe(PP_MyMaster, MPI_ANY_TAG, PP_Comm, &stat); +@@ -889,31 +889,31 @@ + # endif /* PVERBOSE2 */ + + Dtypes [0] = MPI_CHAR; Dtypelens [0] = Maxspc * Numptrn; +- MPI_Address(&(Seqpat[0][0]), &(Dtypeaddr[0])); ++ MPI_Get_address(&(Seqpat[0][0]), &(Dtypeaddr[0])); + Dtypes [1] = MPI_INT; Dtypelens [1] = Maxsite ; +- MPI_Address(&(Alias[0]), &(Dtypeaddr[1])); ++ MPI_Get_address(&(Alias[0]), &(Dtypeaddr[1])); + Dtypes [2] = MPI_INT; Dtypelens [2] = Numptrn ; +- MPI_Address(&(Weight[0]), &(Dtypeaddr[2])); ++ MPI_Get_address(&(Weight[0]), &(Dtypeaddr[2])); + Dtypes [3] = MPI_INT; Dtypelens [3] = Numptrn ; +- MPI_Address(&(constpat[0]), &(Dtypeaddr[3])); ++ MPI_Get_address(&(constpat[0]), &(Dtypeaddr[3])); + Dtypes [4] = MPI_DOUBLE; Dtypelens [4] = numcats ; +- MPI_Address(&(Rates[0]), &(Dtypeaddr[4])); ++ MPI_Get_address(&(Rates[0]), &(Dtypeaddr[4])); + Dtypes [5] = MPI_DOUBLE; Dtypelens [5] = tpmradix ; +- MPI_Address(&(Eval[0]), &(Dtypeaddr[5])); ++ MPI_Get_address(&(Eval[0]), &(Dtypeaddr[5])); + Dtypes [6] = MPI_DOUBLE; Dtypelens [6] = tpmradix ; +- MPI_Address(&(Freqtpm[0]), &(Dtypeaddr[6])); ++ MPI_Get_address(&(Freqtpm[0]), &(Dtypeaddr[6])); + Dtypes [7] = MPI_DOUBLE; Dtypelens [7] = tpmradix * tpmradix ; +- MPI_Address(&(Evec[0][0]), &(Dtypeaddr[7])); ++ MPI_Get_address(&(Evec[0][0]), &(Dtypeaddr[7])); + Dtypes [8] = MPI_DOUBLE; Dtypelens [8] = tpmradix * tpmradix ; +- MPI_Address(&(Ievc[0][0]), &(Dtypeaddr[8])); ++ MPI_Get_address(&(Ievc[0][0]), &(Dtypeaddr[8])); + Dtypes [9] = MPI_DOUBLE; Dtypelens [9] = tpmradix * tpmradix ; +- MPI_Address(&(iexp[0][0]), &(Dtypeaddr[9])); ++ MPI_Get_address(&(iexp[0][0]), &(Dtypeaddr[9])); + Dtypes [10] = MPI_DOUBLE; Dtypelens [10] = Maxspc * Maxspc ; +- MPI_Address(&(Distanmat[0][0]), &(Dtypeaddr[10])); ++ MPI_Get_address(&(Distanmat[0][0]), &(Dtypeaddr[10])); + Dtypes [11] = MPI_DOUBLE; Dtypelens [11] = numcats * tpmradix * tpmradix ; +- MPI_Address(&(ltprobr[0][0][0]), &(Dtypeaddr[11])); ++ MPI_Get_address(&(ltprobr[0][0][0]), &(Dtypeaddr[11])); + +- MPI_Type_struct(12, Dtypelens, Dtypeaddr, Dtypes, &PP_Data); ++ MPI_Type_create_struct(12, Dtypelens, Dtypeaddr, Dtypes, &PP_Data); + MPI_Type_commit(&PP_Data); + + +@@ -984,31 +984,31 @@ + # endif /* PVERBOSE2 */ + + Dtypes [0] = MPI_CHAR; Dtypelens [0] = Maxspc * Numptrn; +- MPI_Address(&(Seqpat[0][0]), &(Dtypeaddr[0])); ++ MPI_Get_address(&(Seqpat[0][0]), &(Dtypeaddr[0])); + Dtypes [1] = MPI_INT; Dtypelens [1] = Maxsite ; +- MPI_Address(&(Alias[0]), &(Dtypeaddr[1])); ++ MPI_Get_address(&(Alias[0]), &(Dtypeaddr[1])); + Dtypes [2] = MPI_INT; Dtypelens [2] = Numptrn ; +- MPI_Address(&(Weight[0]), &(Dtypeaddr[2])); ++ MPI_Get_address(&(Weight[0]), &(Dtypeaddr[2])); + Dtypes [3] = MPI_INT; Dtypelens [3] = Numptrn ; +- MPI_Address(&(constpat[0]), &(Dtypeaddr[3])); ++ MPI_Get_address(&(constpat[0]), &(Dtypeaddr[3])); + Dtypes [4] = MPI_DOUBLE; Dtypelens [4] = numcats ; +- MPI_Address(&(Rates[0]), &(Dtypeaddr[4])); ++ MPI_Get_address(&(Rates[0]), &(Dtypeaddr[4])); + Dtypes [5] = MPI_DOUBLE; Dtypelens [5] = tpmradix ; +- MPI_Address(&(Eval[0]), &(Dtypeaddr[5])); ++ MPI_Get_address(&(Eval[0]), &(Dtypeaddr[5])); + Dtypes [6] = MPI_DOUBLE; Dtypelens [6] = tpmradix ; +- MPI_Address(&(Freqtpm[0]), &(Dtypeaddr[6])); ++ MPI_Get_address(&(Freqtpm[0]), &(Dtypeaddr[6])); + Dtypes [7] = MPI_DOUBLE; Dtypelens [7] = tpmradix * tpmradix ; +- MPI_Address(&(Evec[0][0]), &(Dtypeaddr[7])); ++ MPI_Get_address(&(Evec[0][0]), &(Dtypeaddr[7])); + Dtypes [8] = MPI_DOUBLE; Dtypelens [8] = tpmradix * tpmradix ; +- MPI_Address(&(Ievc[0][0]), &(Dtypeaddr[8])); ++ MPI_Get_address(&(Ievc[0][0]), &(Dtypeaddr[8])); + Dtypes [9] = MPI_DOUBLE; Dtypelens [9] = tpmradix * tpmradix ; +- MPI_Address(&(iexp[0][0]), &(Dtypeaddr [9])); ++ MPI_Get_address(&(iexp[0][0]), &(Dtypeaddr [9])); + Dtypes [10] = MPI_DOUBLE; Dtypelens [10] = Maxspc * Maxspc ; +- MPI_Address(&(Distanmat[0][0]), &(Dtypeaddr[10])); ++ MPI_Get_address(&(Distanmat[0][0]), &(Dtypeaddr[10])); + Dtypes [11] = MPI_DOUBLE; Dtypelens [11] = numcats * tpmradix * tpmradix ; +- MPI_Address(&(ltprobr[0][0][0]), &(Dtypeaddr[11])); ++ MPI_Get_address(&(ltprobr[0][0][0]), &(Dtypeaddr[11])); + +- MPI_Type_struct(12, Dtypelens, Dtypeaddr, Dtypes, &PP_Data); ++ MPI_Type_create_struct(12, Dtypelens, Dtypeaddr, Dtypes, &PP_Data); + MPI_Type_commit(&PP_Data); + + for (dest=1; dest<PP_NumProcs; dest++) { +@@ -1150,10 +1150,10 @@ + ints[4] = usebestq; + ints[5] = approx; + +- MPI_Address(ints, Dtypeaddr); +- MPI_Address(doubles, (Dtypeaddr+1)); ++ MPI_Get_address(ints, Dtypeaddr); ++ MPI_Get_address(doubles, (Dtypeaddr+1)); + +- MPI_Type_struct(2, Dtypelens, Dtypeaddr, Dtypes, &PP_Quart); ++ MPI_Type_create_struct(2, Dtypelens, Dtypeaddr, Dtypes, &PP_Quart); + MPI_Type_commit(&PP_Quart); + + # ifdef PVERBOSE2 +@@ -1201,10 +1201,10 @@ + + PP_quartrecved++; + PP_quartrecvedn++; +- MPI_Address(ints, Dtypeaddr); +- MPI_Address(doubles, (Dtypeaddr+1)); ++ MPI_Get_address(ints, Dtypeaddr); ++ MPI_Get_address(doubles, (Dtypeaddr+1)); + +- MPI_Type_struct(2, Dtypelens, Dtypeaddr, Dtypes, &PP_Quart); ++ MPI_Type_create_struct(2, Dtypelens, Dtypeaddr, Dtypes, &PP_Quart); + MPI_Type_commit(&PP_Quart); + + error = MPI_Recv(MPI_BOTTOM, 1, PP_Quart, MPI_ANY_SOURCE, PP_QUART, PP_Comm, &stat); +@@ -1368,10 +1368,10 @@ + ulis[5] = fullresqs; /* number of fully resolved quartets */ + ulis[6] = missingqs; /* number of missing quartets */ + +- MPI_Address(ulis, Dtypeaddr); +- MPI_Address(ints, (Dtypeaddr+1)); ++ MPI_Get_address(ulis, Dtypeaddr); ++ MPI_Get_address(ints, (Dtypeaddr+1)); + +- MPI_Type_struct(2, Dtypelens, Dtypeaddr, Dtypes, &PP_QBlockSpecs); ++ MPI_Type_create_struct(2, Dtypelens, Dtypeaddr, Dtypes, &PP_QBlockSpecs); + MPI_Type_commit(&PP_QBlockSpecs); + + # ifdef PVERBOSE2 +@@ -1384,12 +1384,12 @@ + fprintf(STDOUT, "(%2d) ... Sent QuartBlockSpecs (%ld, %ld, %ld, %d)\n", PP_Myid, ulis[0], ulis[1], ulis[2], ints[0]); + # endif /* PVERBOSE3 */ + +- MPI_Address(trueaddr, DtypeaddrRes); ++ MPI_Get_address(trueaddr, DtypeaddrRes); + DtypelensRes[0] = truenum; + +- MPI_Address(bq, (DtypeaddrRes + 1)); ++ MPI_Get_address(bq, (DtypeaddrRes + 1)); + DtypelensRes[1] = numofbq; +- MPI_Type_struct(2, DtypelensRes, DtypeaddrRes, DtypesRes, &PP_QBlockRes); ++ MPI_Type_create_struct(2, DtypelensRes, DtypeaddrRes, DtypesRes, &PP_QBlockRes); + MPI_Type_commit(&PP_QBlockRes); + + error = MPI_Ssend(MPI_BOTTOM, 1, PP_QBlockRes, PP_MyMaster, PP_QUARTBLOCK, PP_Comm); +@@ -1455,10 +1455,10 @@ + # ifdef PVERBOSE3 + fprintf(STDOUT, "(%2d) Receiving QuartBlock ...\n", PP_Myid); + # endif /* PVERBOSE3 */ +- MPI_Address(ulis, Dtypeaddr); +- MPI_Address(ints, (Dtypeaddr+1)); ++ MPI_Get_address(ulis, Dtypeaddr); ++ MPI_Get_address(ints, (Dtypeaddr+1)); + +- MPI_Type_struct(2, Dtypelens, Dtypeaddr, Dtypes, &PP_QBlockSpecs); ++ MPI_Type_create_struct(2, Dtypelens, Dtypeaddr, Dtypes, &PP_QBlockSpecs); + MPI_Type_commit(&PP_QBlockSpecs); + + MPI_Probe(MPI_ANY_SOURCE, PP_QUARTBLOCKSPECS, PP_Comm, &stat); +@@ -1486,13 +1486,13 @@ + # endif /* PVERBOSE3 */ + + DtypelensRes[0] = truenum; +- MPI_Address(trueaddr, DtypeaddrRes); ++ MPI_Get_address(trueaddr, DtypeaddrRes); + + bq = calloc((size_t) *numofbq, sizeof(uli)); + + DtypelensRes[1] = *numofbq; +- MPI_Address(bq, (DtypeaddrRes+1)); +- MPI_Type_struct(2, DtypelensRes, DtypeaddrRes, DtypesRes, &PP_QBlockRes); ++ MPI_Get_address(bq, (DtypeaddrRes+1)); ++ MPI_Type_create_struct(2, DtypelensRes, DtypeaddrRes, DtypesRes, &PP_QBlockRes); + MPI_Type_commit(&PP_QBlockRes); + + error = MPI_Recv(MPI_BOTTOM, 1, PP_QBlockRes, dest, PP_QUARTBLOCK, PP_Comm, &stat); +@@ -1637,8 +1637,8 @@ + Dtypelens[0] = (Numquartets + 1)/2; + } + +- MPI_Address(&(quartetinfo[0]), Dtypeaddr); +- MPI_Type_struct(1, Dtypelens, Dtypeaddr, Dtypes, &PP_AllQuarts); ++ MPI_Get_address(&(quartetinfo[0]), Dtypeaddr); ++ MPI_Type_create_struct(1, Dtypelens, Dtypeaddr, Dtypes, &PP_AllQuarts); + MPI_Type_commit(&PP_AllQuarts); + + for (dest=1; dest<PP_NumProcs; dest++) { +@@ -1686,8 +1686,8 @@ + Dtypelens[0] = (*Numquartets + 1)/2; + } + +- MPI_Address(&(quartetinfo[0]), Dtypeaddr); +- MPI_Type_struct(1, Dtypelens, Dtypeaddr, Dtypes, &PP_AllQuarts); ++ MPI_Get_address(&(quartetinfo[0]), Dtypeaddr); ++ MPI_Type_create_struct(1, Dtypelens, Dtypeaddr, Dtypes, &PP_AllQuarts); + MPI_Type_commit(&PP_AllQuarts); + + error = MPI_Recv(MPI_BOTTOM, 1, PP_AllQuarts, PP_MyMaster, PP_ALLQUARTS, PP_Comm, &stat); +@@ -1748,13 +1748,13 @@ + for (n=0; n<(int)blocksize; n++) { + Dtypes[n] = MPI_CHAR; + Dtypelens[n] = (taxa - 3) * taxa; +- MPI_Address(&(biparts[n][0][0]), &(Dtypeaddr[n])); ++ MPI_Get_address(&(biparts[n][0][0]), &(Dtypeaddr[n])); + } + pstptr = pstlist; + for (n=0; n<pstnum; n++) { + Dtypes[(int)blocksize + n] = MPI_CHAR; + Dtypelens[(int)blocksize + n] = psteptreestrlen; +- MPI_Address((*pstptr).tree, &(Dtypeaddr[(int)blocksize + n])); ++ MPI_Get_address((*pstptr).tree, &(Dtypeaddr[(int)blocksize + n])); + pstnumarr[n] = (*pstptr).count; + # ifdef PVERBOSE3 + fprintf(STDOUT, "(%2d) Sent tree item ->%d: [%d/%d] #=%d \"%s\"\n", +@@ -1764,9 +1764,9 @@ + } + Dtypes[((int)blocksize + pstnum)] = MPI_INT; + Dtypelens[((int)blocksize + pstnum)] = pstnum; +- MPI_Address(&(pstnumarr[0]), &(Dtypeaddr[((int)blocksize + pstnum)])); ++ MPI_Get_address(&(pstnumarr[0]), &(Dtypeaddr[((int)blocksize + pstnum)])); + +- MPI_Type_struct(((int)blocksize + pstnum + 1), Dtypelens, Dtypeaddr, Dtypes, &PP_Biparts); ++ MPI_Type_create_struct(((int)blocksize + pstnum + 1), Dtypelens, Dtypeaddr, Dtypes, &PP_Biparts); + MPI_Type_commit(&PP_Biparts); + + error = MPI_Ssend(MPI_BOTTOM, 1, PP_Biparts, PP_MyMaster, PP_PUZZLEBLOCK, PP_Comm); +@@ -1843,20 +1843,20 @@ + (*bip)[n] = new_cmatrix(*taxa - 3, *taxa); + Dtypes[n] = MPI_CHAR; + Dtypelens[n] = (*taxa - 3) * *taxa; +- MPI_Address(&((*bip)[n][0][0]), &(Dtypeaddr[n])); ++ MPI_Get_address(&((*bip)[n][0][0]), &(Dtypeaddr[n])); + } + for (n=0; n<pstlistnum; n++) { + pstarr[n] = (char *)calloc((size_t) psteptreestrlen, sizeof(char)); + Dtypes[(int)*blocksize + n] = MPI_CHAR; + Dtypelens[(int)*blocksize + n] = psteptreestrlen; +- MPI_Address(&(pstarr[n][0]), &(Dtypeaddr[(int)*blocksize + n])); ++ MPI_Get_address(&(pstarr[n][0]), &(Dtypeaddr[(int)*blocksize + n])); + } + + Dtypes[(int)*blocksize + pstlistnum] = MPI_INT; + Dtypelens[(int)*blocksize + pstlistnum] = pstlistnum; +- MPI_Address(&(pstnumarr[0]), &(Dtypeaddr[(int)*blocksize + pstlistnum])); ++ MPI_Get_address(&(pstnumarr[0]), &(Dtypeaddr[(int)*blocksize + pstlistnum])); + +- MPI_Type_struct(((int)*blocksize + pstlistnum + 1), Dtypelens, Dtypeaddr, Dtypes, &PP_Biparts); ++ MPI_Type_create_struct(((int)*blocksize + pstlistnum + 1), Dtypelens, Dtypeaddr, Dtypes, &PP_Biparts); + MPI_Type_commit(&PP_Biparts); + + error = MPI_Recv(MPI_BOTTOM, 1, PP_Biparts, dest, PP_PUZZLEBLOCK, PP_Comm, &stat); +@@ -2053,10 +2053,10 @@ + fprintf(STDOUT, "(%2d) ... Sent DONE Signal\n", PP_Myid); + # endif /* PVERBOSE3 */ + +- MPI_Address(ints, Dtypeaddr); +- MPI_Address(doubles, (Dtypeaddr+1)); ++ MPI_Get_address(ints, Dtypeaddr); ++ MPI_Get_address(doubles, (Dtypeaddr+1)); + +- MPI_Type_struct(2, Dtypelens, Dtypeaddr, Dtypes, &PP_Stats); ++ MPI_Type_create_struct(2, Dtypelens, Dtypeaddr, Dtypes, &PP_Stats); + MPI_Type_commit(&PP_Stats); + + doquartrecved[0] = 0; +@@ -2173,10 +2173,10 @@ + doubles[4] = tarr.cpu; + doubles[5] = tarr.time; + +- MPI_Address(ints, Dtypeaddr); +- MPI_Address(doubles, (Dtypeaddr+1)); ++ MPI_Get_address(ints, Dtypeaddr); ++ MPI_Get_address(doubles, (Dtypeaddr+1)); + +- MPI_Type_struct(2, Dtypelens, Dtypeaddr, Dtypes, &PP_Stats); ++ MPI_Type_create_struct(2, Dtypelens, Dtypeaddr, Dtypes, &PP_Stats); + MPI_Type_commit(&PP_Stats); + + error = MPI_Ssend(MPI_BOTTOM, 1, PP_Stats, PP_MyMaster, PP_STATS, PP_Comm); diff --git a/sci-biology/tree-puzzle/tree-puzzle-5.2.ebuild b/sci-biology/tree-puzzle/tree-puzzle-5.2.ebuild index 8e2a07f8183e..06fc28376ff5 100644 --- a/sci-biology/tree-puzzle/tree-puzzle-5.2.ebuild +++ b/sci-biology/tree-puzzle/tree-puzzle-5.2.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit toolchain-funcs @@ -18,14 +18,10 @@ RESTRICT="test" DEPEND="mpi? ( virtual/mpi )" RDEPEND="${DEPEND}" -PATCHES=( "${FILESDIR}"/${PN}-impl-dec.patch ) - -pkg_setup() { - use mpi && [[ $(tc-getCC) == icc* ]] && - die "The parallelized version of tree-puzzle cannot be compiled using icc. - Either disable the \"mpi\" USE flag to compile only the non-parallelized - version of the program, or use gcc as your compiler (CC=\"gcc\")." -} +PATCHES=( + "${FILESDIR}"/${PN}-impl-dec.patch + "${FILESDIR}"/${P}-MPI-3.0.patch +) src_configure() { default @@ -38,9 +34,14 @@ src_configure() { fi } +src_compile() { + # hopelessly terrible build system, abuses Automake + emake -j1 +} + src_install() { - dobin src/puzzle - use mpi && dobin src/ppuzzle + dobin src/puzzle $(usev mpi src/ppuzzle) + einstalldocs # User manual |