[ClavaLaraApi] Enables scoping of array variables as firstprivate
@@ -31,6 +31,7 @@ aspectdef SetArrayAccessOpenMPscoping
{
if (LoopOmpAttributes[loopindex].firstprivateVars.indexOf(arrayAccessObj.name) === -1)
{
+ LoopOmpAttributes[loopindex].firstprivateVars.push(arrayAccessObj.name);
//LoopOmpAttributes[loopindex].firstprivateVars.push(arrayAccessObj.name);
}
arrayAccessObj.usedInClause = true;
