Révision | 7cd2f406dc2d68831259f967f83c969eff124229 (tree) |
---|---|
l'heure | 2013-08-22 12:00:40 |
Auteur | Mikiya Fujii <mikiya.fujii@gmai...> |
Commiter | Mikiya Fujii |
number of threads are not changed for asynchronous mpi #31814
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/trunk@1480 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -1407,9 +1407,8 @@ void Cndo2::CalcFockMatrix(double** fockMatrix, | ||
1407 | 1407 | for(int mu=firstAOIndexA; mu<=lastAOIndexA; mu++){ |
1408 | 1408 | int calcRank = mu%mpiSize; |
1409 | 1409 | if(mpiRank == calcRank){ |
1410 | - int maxThreads = omp_get_max_threads(); | |
1411 | 1410 | stringstream ompErrors; |
1412 | -#pragma omp parallel for schedule(auto) num_threads(maxThreads-1) | |
1411 | +#pragma omp parallel for schedule(auto) | |
1413 | 1412 | for(int B=A; B<totalNumberAtoms; B++){ |
1414 | 1413 | try{ |
1415 | 1414 | const Atom& atomB = *molecule.GetAtom(B); |
@@ -1627,9 +1626,8 @@ void Cndo2::CalcGammaAB(double** gammaAB, const Molecule& molecule) const{ | ||
1627 | 1626 | int na = atomA.GetValenceShellType() + 1; |
1628 | 1627 | double orbitalExponentA = atomA.GetOrbitalExponent( |
1629 | 1628 | atomA.GetValenceShellType(), s, this->theory); |
1630 | - int maxThreads = omp_get_max_threads(); | |
1631 | 1629 | stringstream ompErrors; |
1632 | -#pragma omp parallel for schedule(auto) num_threads(maxThreads-1) | |
1630 | +#pragma omp parallel for schedule(auto) | |
1633 | 1631 | for(int B=A; B<totalAtomNumber; B++){ |
1634 | 1632 | try{ |
1635 | 1633 | const Atom& atomB = *molecule.GetAtom(B); |
@@ -1831,9 +1829,8 @@ void Cndo2::CalcCartesianMatrixByGTOExpansion(double*** cartesianMatrix, | ||
1831 | 1829 | if(mpiRank == calcRank){ |
1832 | 1830 | for(int a=0; a<numValenceAOsA; a++){ |
1833 | 1831 | int mu = firstAOIndexA + a; |
1834 | - int maxThreads = omp_get_max_threads(); | |
1835 | 1832 | stringstream ompErrors; |
1836 | -#pragma omp parallel for schedule(auto) num_threads(maxThreads-1) | |
1833 | +#pragma omp parallel for schedule(auto) | |
1837 | 1834 | for(int B=0; B<totalAtomNumber; B++){ |
1838 | 1835 | try{ |
1839 | 1836 | const Atom& atomB = *molecule.GetAtom(B); |
@@ -3949,9 +3946,8 @@ void Cndo2::CalcOverlapAOs(double** overlapAOs, const Molecule& molecule) const{ | ||
3949 | 3946 | int numValenceAOs = atomA.GetValenceSize(); |
3950 | 3947 | int calcRank = A%mpiSize; |
3951 | 3948 | if(mpiRank == calcRank){ |
3952 | - int maxThreads = omp_get_max_threads(); | |
3953 | 3949 | stringstream ompErrors; |
3954 | -#pragma omp parallel num_threads(maxThreads-1) | |
3950 | +#pragma omp parallel | |
3955 | 3951 | { |
3956 | 3952 | double** diatomicOverlapAOs = NULL; |
3957 | 3953 | double** rotatingMatrix = NULL; |
@@ -742,9 +742,8 @@ void Mndo::CalcCISMatrix(double** matrixCIS) const{ | ||
742 | 742 | // single excitation from I-th (occupied)MO to A-th (virtual)MO |
743 | 743 | int moI = this->GetActiveOccIndex(*this->molecule, k); |
744 | 744 | int moA = this->GetActiveVirIndex(*this->molecule, k); |
745 | - int maxThreads = omp_get_max_threads(); | |
746 | 745 | stringstream ompErrors; |
747 | -#pragma omp parallel for schedule(auto) num_threads(maxThreads-1) | |
746 | +#pragma omp parallel for schedule(auto) | |
748 | 747 | for(int l=k; l<this->matrixCISdimension; l++){ |
749 | 748 | try{ |
750 | 749 | // single excitation from J-th (occupied)MO to B-th (virtual)MO |
@@ -2556,9 +2555,8 @@ void Mndo::CalcForce(const vector<int>& elecStates){ | ||
2556 | 2555 | const Atom& atomA = *molecule->GetAtom(a); |
2557 | 2556 | int firstAOIndexA = atomA.GetFirstAOIndex(); |
2558 | 2557 | int lastAOIndexA = atomA.GetLastAOIndex(); |
2559 | - int maxThreads = omp_get_max_threads(); | |
2560 | 2558 | stringstream ompErrors; |
2561 | -#pragma omp parallel num_threads(maxThreads-1) | |
2559 | +#pragma omp parallel | |
2562 | 2560 | { |
2563 | 2561 | double*** diatomicOverlapAOs1stDerivs = NULL; |
2564 | 2562 | double***** diatomicTwoElecTwoCore1stDerivs = NULL; |
@@ -3446,9 +3444,8 @@ void Mndo::CalcTwoElecTwoCore(double****** twoElecTwoCore, | ||
3446 | 3444 | for(int a=0; a<totalNumberAtoms; a++){ |
3447 | 3445 | int calcRank = a%mpiSize; |
3448 | 3446 | if(mpiRank == calcRank){ |
3449 | - int maxThreads = omp_get_max_threads(); | |
3450 | 3447 | stringstream ompErrors; |
3451 | -#pragma omp parallel num_threads(maxThreads-1) | |
3448 | +#pragma omp parallel | |
3452 | 3449 | { |
3453 | 3450 | double**** diatomicTwoElecTwoCore = NULL; |
3454 | 3451 | double** tmpRotMat = NULL; |