From 0e1c1acfa2e5d59ba09282ae25771e144e3cd621 Mon Sep 17 00:00:00 2001 From: Tim Jammer <tim.jammer@tu-darmstadt.de> Date: Wed, 1 May 2024 14:26:12 +0200 Subject: [PATCH] fix which type is send and which one recv --- scripts/errors/dtypes/DtypeMissmatch.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/errors/dtypes/DtypeMissmatch.py b/scripts/errors/dtypes/DtypeMissmatch.py index 6094f9a44..9adfbb19e 100644 --- a/scripts/errors/dtypes/DtypeMissmatch.py +++ b/scripts/errors/dtypes/DtypeMissmatch.py @@ -53,12 +53,12 @@ def get_correct_case(type_1, size_1, send_func, recv_func, comm): comm_var_name = get_intercomm(comm, tm) type_var_1, buf_name_1, type_var_2, buf_name_2 = get_type_buffers(tm, type_1, type_1, size_1, size_1) - call = tm.get_instruction(identifier="MPICALL", rank_excuting=0) + call = tm.get_instruction(identifier="MPICALL", rank_excuting=1) call.set_arg("buf", buf_name_1) call.set_arg("datatype", type_var_1) call.set_arg("count", size_1) call.set_arg("comm", comm_var_name) - call = tm.get_instruction(identifier="MPICALL", rank_excuting=1) + call = tm.get_instruction(identifier="MPICALL", rank_excuting=0) call.set_arg("buf", buf_name_2) call.set_arg("datatype", type_var_2) call.set_arg("count", size_1) @@ -79,13 +79,13 @@ def get_global_missmatch(type_1, type_2, size_1, size_2, send_func, recv_func, c comm_var_name = get_intercomm(comm, tm) type_var_1, buf_name_1, type_var_2, buf_name_2 = get_type_buffers(tm, type_1, type_2, size_1, size_2) - call = tm.get_instruction(identifier="MPICALL", rank_excuting=0) + call = tm.get_instruction(identifier="MPICALL", rank_excuting=1) call.set_has_error() call.set_arg("buf", buf_name_1) call.set_arg("datatype", type_var_1) call.set_arg("count", size_1) call.set_arg("comm", comm_var_name) - call = tm.get_instruction(identifier="MPICALL", rank_excuting=1) + call = tm.get_instruction(identifier="MPICALL", rank_excuting=0) call.set_has_error() call.set_arg("buf", buf_name_2) call.set_arg("datatype", type_var_2) @@ -196,6 +196,7 @@ class DtypeMissmatch(ErrorGenerator): correct_types_checked = set() for type_1, type_2, send_func, recv_func, comm in combinations_to_use: + # local missmatch only for one communicator if comm == "MPI_COMM_WORLD": yield get_local_missmatch(type_1, type_2, send_func, recv_func) -- GitLab