Skip to content
Snippets Groups Projects
Commit e76730f3 authored by Jammer, Tim's avatar Jammer, Tim
Browse files

fix wrong buffer arg

parent 77e6eb84
No related branches found
No related tags found
No related merge requests found
......@@ -66,16 +66,17 @@ class InvalidComErrorColl(ErrorGenerator):
tm.set_description("ParamMatching-Type-" + func_to_use,
"Wrong datatype matching: %s vs %s" % (type_1, type_2))
type_var_1, buf_name_1, type_var_2, buf_name_2 = get_type_buffers(tm, type_1, type_2, 1, 1)
for call in tm.get_instruction("MPICALL", return_list=True):
call.set_rank_executing(0)
call.set_arg("datatype", type_1)
call.set_arg("datatype", type_var_1)
call.set_has_error()
if call.has_arg("recvbuf"):
call.set_arg("recvbuf", type_2)
call.set_arg("sendbuf", type_2)
call.set_arg("recvbuf", buf_name_2)
call.set_arg("sendbuf", buf_name_2)
else:
call.set_arg("buffer", type_2)
call.set_arg("buffer", buf_name_2)
yield tm
if generate_level < BASIC_TEST_LEVEL:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment