[ClavaLaraApi] Adds TODO in SetArrayAccessOpenMPscoping
@@ -17,6 +17,9 @@ aspectdef SetArrayAccessOpenMPscoping
return;
+ // TODO: This 'for' needs to be commented in order for array
+ // variables to appear as first private. However, commenting it
+ // triggers pragma generation bugs (e.g., ] in NAS CG and NAS UA)
// Ignore array uses in the loop whose pattern is 'R'
for(var arrayAccessObj of LoopOmpAttributes[loopindex].varAccess)
@@ -35,7 +38,6 @@ aspectdef SetArrayAccessOpenMPscoping
-
//var arrayAccesslist = SearchStruct(LoopOmpAttributes[loopindex].varAccess, {varTypeAccess : 'arrayAccess', usedInClause : false});
// Get list of array uses
var arrayAccesslist = SearchStruct(LoopOmpAttributes[loopindex].varAccess, {varTypeAccess : 'arrayAccess'});
