diff --git a/sapfor/experts/Sapfor_2017/_src/Distribution/DvmhDirective.cpp b/sapfor/experts/Sapfor_2017/_src/Distribution/DvmhDirective.cpp index b866a67..a853945 100644 --- a/sapfor/experts/Sapfor_2017/_src/Distribution/DvmhDirective.cpp +++ b/sapfor/experts/Sapfor_2017/_src/Distribution/DvmhDirective.cpp @@ -780,7 +780,7 @@ ParallelDirective::genDirective(File* file, const vector, int>> shiftsByAccess; - const string bounds = genBounds(shadowRenew[i1], shadowRenewShifts[i1], reducedG, allArrays, remoteReads, readOps, false, regionId, distribution, arraysInAcross, shiftsByAccess, arrayLinksByFuncCalls); + DIST::Array* shadowArray = allArrays.GetArrayByName(shadowRenew[i1].first.second); + const string bounds = genBounds(shadowRenew[i1], shadowRenewShifts[i1], reducedG, allArrays, shadowArray, remoteReads, readOps, false, regionId, distribution, arraysInAcross, shiftsByAccess, arrayLinksByFuncCalls); if (bounds != "") { DIST::Array* currArray = allArrays.GetArrayByName(shadowRenew[i1].first.second); diff --git a/sapfor/experts/Sapfor_2017/_src/Distribution/DvmhDirective.h b/sapfor/experts/Sapfor_2017/_src/Distribution/DvmhDirective.h index 5e72048..24c5425 100644 --- a/sapfor/experts/Sapfor_2017/_src/Distribution/DvmhDirective.h +++ b/sapfor/experts/Sapfor_2017/_src/Distribution/DvmhDirective.h @@ -162,7 +162,7 @@ private: std::string genBounds(std::pair, std::vector>> &shadowOp, std::vector> &shadowOpShift, DIST::GraphCSR &reducedG, - DIST::Arrays &allArrays, + DIST::Arrays &allArrays, DIST::Array* shadowArray, std::map>& remoteRegularReads, const std::map, std::vector>> &readOps, const bool isAcross, const uint64_t regionId, diff --git a/sapfor/experts/Sapfor_2017/_src/Distribution/DvmhDirectiveBase.cpp b/sapfor/experts/Sapfor_2017/_src/Distribution/DvmhDirectiveBase.cpp index 403044e..51c8ac0 100644 --- a/sapfor/experts/Sapfor_2017/_src/Distribution/DvmhDirectiveBase.cpp +++ b/sapfor/experts/Sapfor_2017/_src/Distribution/DvmhDirectiveBase.cpp @@ -461,7 +461,7 @@ static inline string calculateShifts(DIST::GraphCSR &redu string ParallelDirective::genBounds(pair, vector>> &shadowOp, vector> &shadowOpShift, DIST::GraphCSR &reducedG, - DIST::Arrays &allArrays, + DIST::Arrays &allArrays, DIST::Array* shadowArray, map>& remoteRegularReads, const map, vector>> &readOps, const bool isAcross, @@ -471,8 +471,7 @@ string ParallelDirective::genBounds(pair, vector, int>> &shiftsByAccess, const map> &arrayLinksByFuncCalls) const { - DIST::Array *shadowArray = allArrays.GetArrayByName(shadowOp.first.second); - checkNull(shadowArray, convertFileName(__FILE__).c_str(), __LINE__); + checkNull(shadowArray, convertFileName(__FILE__).c_str(), __LINE__); auto on_ext = on;