Skip to content
Snippets Groups Projects

Draft: Fortran Support

1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -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("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("remote_group = (!(rank % 2) ? " + even_group + ":" + odd_group + ");"), before_instruction=before_inst)
else:
else:
tm.insert_instruction(Instruction("local_group = merge(" + even_group + ", " + odd_group + ", modulo(rank, 2) == 0)"), before_instruction=before_inst)
tm.insert_instruction(Instruction("local_group = merge(" + even_group + ", " + odd_group + ", modulo(rank, 2) == 1)"), before_instruction=before_inst)
tm.insert_instruction(Instruction("remote_group = merge(" + even_group + ", " + odd_group + ", modulo(rank, 2) == 1)"), before_instruction=before_inst)
tm.insert_instruction(Instruction("remote_group = merge(" + even_group + ", " + odd_group + ", modulo(rank, 2) == 0)"), before_instruction=before_inst)
call = MPICallFactory.mpi_intercomm_create_from_groups("local_group",
call = MPICallFactory.mpi_intercomm_create_from_groups("local_group",
"0",
"0",
Loading