shared memory parallelization: do not find privates in modules

This commit is contained in:
2024-07-06 18:09:59 +03:00
parent 3cb6f6dd5c
commit 06f908c1b2

View File

@@ -2088,7 +2088,7 @@ void loopAnalyzer(SgFile *file, vector<ParallelRegion*> &regions, map<tuple<int,
}
else if (currV == USE_STMT)
{
if (st->lineNumber() > 0)
if (st->lineNumber() > 0 && !sharedMemoryParallelization)
{
auto itF = privatesByModule.find(st->symbol()->identifier());
@@ -2105,7 +2105,7 @@ void loopAnalyzer(SgFile *file, vector<ParallelRegion*> &regions, map<tuple<int,
printInternalError(convertFileName(__FILE__).c_str(), __LINE__);
}
if(!sharedMemoryParallelization)
for (auto it = itF->second.begin(); it != itF->second.end(); ++it)
privatesVars.insert(*it);
}