Skip to content

Commit

Permalink
fix(code_generator): potential type error
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasrothenberger committed Jan 19, 2024
1 parent 74a228f commit 5ac80f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions discopop_library/CodeGenerator/classes/UnpackedSuggestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,13 @@ def __get_do_all_and_reduction_pragmas(self, is_gpu_pragma: bool) -> List[Pragma
if self.values["collapse_level"] > 1:
pragma.pragma_str += "collapse(" + str(self.values["collapse_level"]) + ") "
if len(self.values["first_private"]) > 0:
pragma.pragma_str += "firstprivate(" + ",".join(self.values["first_private"]) + ") "
pragma.pragma_str += "firstprivate(" + ",".join([str(s) for s in self.values["first_private"]]) + ") "
if len(self.values["private"]) > 0:
pragma.pragma_str += "private(" + ",".join(self.values["private"]) + ") "
pragma.pragma_str += "private(" + ",".join([str(s) for s in self.values["private"]]) + ") "
if len(self.values["last_private"]) > 0:
pragma.pragma_str += "lastprivate(" + ",".join(self.values["last_private"]) + ") "
pragma.pragma_str += "lastprivate(" + ",".join([str(s) for s in self.values["last_private"]]) + ") "
if len(self.values["shared"]) > 0:
pragma.pragma_str += "shared(" + ",".join(self.values["shared"]) + ") "
pragma.pragma_str += "shared(" + ",".join([str(s) for s in self.values["shared"]]) + ") "
if len(self.values["reduction"]) > 0:
reductions_dict: Dict[str, List[str]] = dict()
for entry in self.values["reduction"]:
Expand Down

0 comments on commit 5ac80f1

Please sign in to comment.