• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révision7cd2f406dc2d68831259f967f83c969eff124229 (tree)
l'heure2013-08-22 12:00:40
AuteurMikiya Fujii <mikiya.fujii@gmai...>
CommiterMikiya Fujii

Message de Log

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

Change Summary

Modification

--- a/src/cndo/Cndo2.cpp
+++ b/src/cndo/Cndo2.cpp
@@ -1407,9 +1407,8 @@ void Cndo2::CalcFockMatrix(double** fockMatrix,
14071407 for(int mu=firstAOIndexA; mu<=lastAOIndexA; mu++){
14081408 int calcRank = mu%mpiSize;
14091409 if(mpiRank == calcRank){
1410- int maxThreads = omp_get_max_threads();
14111410 stringstream ompErrors;
1412-#pragma omp parallel for schedule(auto) num_threads(maxThreads-1)
1411+#pragma omp parallel for schedule(auto)
14131412 for(int B=A; B<totalNumberAtoms; B++){
14141413 try{
14151414 const Atom& atomB = *molecule.GetAtom(B);
@@ -1627,9 +1626,8 @@ void Cndo2::CalcGammaAB(double** gammaAB, const Molecule& molecule) const{
16271626 int na = atomA.GetValenceShellType() + 1;
16281627 double orbitalExponentA = atomA.GetOrbitalExponent(
16291628 atomA.GetValenceShellType(), s, this->theory);
1630- int maxThreads = omp_get_max_threads();
16311629 stringstream ompErrors;
1632-#pragma omp parallel for schedule(auto) num_threads(maxThreads-1)
1630+#pragma omp parallel for schedule(auto)
16331631 for(int B=A; B<totalAtomNumber; B++){
16341632 try{
16351633 const Atom& atomB = *molecule.GetAtom(B);
@@ -1831,9 +1829,8 @@ void Cndo2::CalcCartesianMatrixByGTOExpansion(double*** cartesianMatrix,
18311829 if(mpiRank == calcRank){
18321830 for(int a=0; a<numValenceAOsA; a++){
18331831 int mu = firstAOIndexA + a;
1834- int maxThreads = omp_get_max_threads();
18351832 stringstream ompErrors;
1836-#pragma omp parallel for schedule(auto) num_threads(maxThreads-1)
1833+#pragma omp parallel for schedule(auto)
18371834 for(int B=0; B<totalAtomNumber; B++){
18381835 try{
18391836 const Atom& atomB = *molecule.GetAtom(B);
@@ -3949,9 +3946,8 @@ void Cndo2::CalcOverlapAOs(double** overlapAOs, const Molecule& molecule) const{
39493946 int numValenceAOs = atomA.GetValenceSize();
39503947 int calcRank = A%mpiSize;
39513948 if(mpiRank == calcRank){
3952- int maxThreads = omp_get_max_threads();
39533949 stringstream ompErrors;
3954-#pragma omp parallel num_threads(maxThreads-1)
3950+#pragma omp parallel
39553951 {
39563952 double** diatomicOverlapAOs = NULL;
39573953 double** rotatingMatrix = NULL;
--- a/src/mndo/Mndo.cpp
+++ b/src/mndo/Mndo.cpp
@@ -742,9 +742,8 @@ void Mndo::CalcCISMatrix(double** matrixCIS) const{
742742 // single excitation from I-th (occupied)MO to A-th (virtual)MO
743743 int moI = this->GetActiveOccIndex(*this->molecule, k);
744744 int moA = this->GetActiveVirIndex(*this->molecule, k);
745- int maxThreads = omp_get_max_threads();
746745 stringstream ompErrors;
747-#pragma omp parallel for schedule(auto) num_threads(maxThreads-1)
746+#pragma omp parallel for schedule(auto)
748747 for(int l=k; l<this->matrixCISdimension; l++){
749748 try{
750749 // single excitation from J-th (occupied)MO to B-th (virtual)MO
@@ -2556,9 +2555,8 @@ void Mndo::CalcForce(const vector<int>& elecStates){
25562555 const Atom& atomA = *molecule->GetAtom(a);
25572556 int firstAOIndexA = atomA.GetFirstAOIndex();
25582557 int lastAOIndexA = atomA.GetLastAOIndex();
2559- int maxThreads = omp_get_max_threads();
25602558 stringstream ompErrors;
2561-#pragma omp parallel num_threads(maxThreads-1)
2559+#pragma omp parallel
25622560 {
25632561 double*** diatomicOverlapAOs1stDerivs = NULL;
25642562 double***** diatomicTwoElecTwoCore1stDerivs = NULL;
@@ -3446,9 +3444,8 @@ void Mndo::CalcTwoElecTwoCore(double****** twoElecTwoCore,
34463444 for(int a=0; a<totalNumberAtoms; a++){
34473445 int calcRank = a%mpiSize;
34483446 if(mpiRank == calcRank){
3449- int maxThreads = omp_get_max_threads();
34503447 stringstream ompErrors;
3451-#pragma omp parallel num_threads(maxThreads-1)
3448+#pragma omp parallel
34523449 {
34533450 double**** diatomicTwoElecTwoCore = NULL;
34543451 double** tmpRotMat = NULL;