import clava.autopar.Parallelize; import clava.autopar.AutoParStats; aspectdef PolybenchAutopar // Reset stats AutoParStats.reset(); var $loops = []; select file.function.loop end apply // Only parallelize loops inside Polybench kernel functions if(!$function.name.startsWith("kernel_")) { continue; } // Set name AutoParStats.get().setName(Io.removeExtension($file.name)); $loops.push($loop); end Parallelize.forLoops($loops); end