Skip to content
Snippets Groups Projects

Draft: Fortran Support

1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -578,7 +578,7 @@ def replace_wait(wait_call, tm, wait_func_to_use, provide_request_array: bool =
@@ -578,7 +578,7 @@ def replace_wait(wait_call, tm, wait_func_to_use, provide_request_array: bool =
idx_name = tm.add_stack_variable("int")
idx_name = tm.add_stack_variable("int")
idx_array = tm.add_stack_variable("int", arr_dim=1)
idx_array = tm.add_stack_variable("int", arr_dim=1)
test_call = MPICallFactory.mpi_waitsome("1", wait_call.get_arg("request"), "&" + idx_name,
test_call = MPICallFactory.mpi_waitsome("1", wait_call.get_arg("request"), "&" + idx_name,
"&" + idx_array, status_to_use)
idx_array, status_to_use)
test_call.set_rank_executing(wait_call.get_rank_executing())
test_call.set_rank_executing(wait_call.get_rank_executing())
test_call.set_identifier(wait_call.get_identifier())
test_call.set_identifier(wait_call.get_identifier())
tm.insert_instruction(test_call, before_instruction=wait_call) # insertion before the improbe call
tm.insert_instruction(test_call, before_instruction=wait_call) # insertion before the improbe call
@@ -587,7 +587,7 @@ def replace_wait(wait_call, tm, wait_func_to_use, provide_request_array: bool =
@@ -587,7 +587,7 @@ def replace_wait(wait_call, tm, wait_func_to_use, provide_request_array: bool =
if wait_func_to_use == "mpi_testsome":
if wait_func_to_use == "mpi_testsome":
flag_name = tm.add_stack_variable("int")
flag_name = tm.add_stack_variable("int")
idx_array = tm.add_stack_variable("int", arr_dim=1)
idx_array = tm.add_stack_variable("int", arr_dim=1)
test_call = MPICallFactory.mpi_testsome("1", wait_call.get_arg("request"), "&" + flag_name, "&" + idx_array,
test_call = MPICallFactory.mpi_testsome("1", wait_call.get_arg("request"), "&" + flag_name, idx_array,
status_to_use)
status_to_use)
test_call.set_rank_executing(wait_call.get_rank_executing())
test_call.set_rank_executing(wait_call.get_rank_executing())
test_call.set_identifier(wait_call.get_identifier())
test_call.set_identifier(wait_call.get_identifier())
Loading