shared memory parallelization: do not find privates in modules
This commit is contained in:
@@ -2088,7 +2088,7 @@ void loopAnalyzer(SgFile *file, vector<ParallelRegion*> ®ions, 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,9 +2105,9 @@ void loopAnalyzer(SgFile *file, vector<ParallelRegion*> ®ions, 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);
|
||||
|
||||
for (auto it = itF->second.begin(); it != itF->second.end(); ++it)
|
||||
privatesVars.insert(*it);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user