Draft: Fortran Support
Compare changes
- Oraji, Yussur Mustafa authored
@@ -909,8 +909,8 @@ def get_intercomm(comm_create_func: str, tm: TemplateManager, before_idx: int =
@@ -909,8 +909,8 @@ def get_intercomm(comm_create_func: str, tm: TemplateManager, before_idx: int =
tm.insert_instruction(Instruction("local_group = (rank % 2 ? " + even_group + ":" + odd_group + ");"), before_instruction=before_inst)
tm.insert_instruction(Instruction("remote_group = (!(rank % 2) ? " + even_group + ":" + odd_group + ");"), before_instruction=before_inst)
tm.insert_instruction(Instruction("local_group = merge(" + even_group + ", " + odd_group + ", modulo(rank, 2) == 0)"), before_instruction=before_inst)
tm.insert_instruction(Instruction("remote_group = merge(" + even_group + ", " + odd_group + ", modulo(rank, 2) == 1)"), before_instruction=before_inst)