replace['shortdesc'] = 'Correct collective ordering'
replace['longdesc'] = f'All ranks call {c1} twice'
replace['outcome'] = 'OK'
replace['errormsg'] = ''
gen.make_file(template, f'CallOrdering_{c1}_{c2}_ok.c', replace)
# Generate the correct code using the collective once
replace['shortdesc'] = 'Correct collective ordering'
replace['longdesc'] = f'All ranks call {c1} twice'
replace['outcome'] = 'OK'
replace['errormsg'] = ''
gen.make_file(template, f'CallOrdering_{c1}_{c2}_ok.c', replace)
# Generate the correct code using the collective once
replace['shortdesc'] = 'Correct collective ordering'
replace['longdesc'] = f'All ranks call {c1} once'
replace['outcome'] = 'OK'
replace['shortdesc'] = 'Correct collective ordering'
replace['longdesc'] = f'All ranks call {c1} once'
replace['outcome'] = 'OK'
gen.make_file(template, f'CallOrdering_{c1}_ok.c', replace)
else:
# Generate the correct ordering with two different collectives
gen.make_file(template, f'CallOrdering_{c1}_ok.c', replace)
else:
# Generate the correct ordering with two different collectives
replace['shortdesc'] = 'Correct collective ordering'
replace['longdesc'] = f'All ranks call {c1} and then {c2}'
replace['outcome'] = 'OK'
replace['errormsg'] = ''
gen.make_file(template, f'CallOrdering_{c1}_{c2}_ok.c', replace)
# Generate the incorrect ordering with two different collectives
replace['shortdesc'] = 'Correct collective ordering'
replace['longdesc'] = f'All ranks call {c1} and then {c2}'
replace['outcome'] = 'OK'
replace['errormsg'] = ''
gen.make_file(template, f'CallOrdering_{c1}_{c2}_ok.c', replace)
# Generate the incorrect ordering with two different collectives
replace['shortdesc'] = 'Incorrect collective ordering'
replace['longdesc'] = f'Odd ranks call {c1} and then {c2} while even ranks call these collectives in the other order'
replace['outcome'] = 'ERROR: CallMatching'
replace['shortdesc'] = 'Incorrect collective ordering'
replace['longdesc'] = f'Odd ranks call {c1} and then {c2} while even ranks call these collectives in the other order'
replace['outcome'] = 'ERROR: CallMatching'
gen.make_file(template, f'CallOrdering_{c1}_{c2}_nok.c', replace)
# Generate the incorrect ordering with one collective
gen.make_file(template, f'CallOrdering_{c1}_{c2}_nok.c', replace)
# Generate the incorrect ordering with one collective
replace['shortdesc'] = 'Incorrect collective ordering'
replace['longdesc'] = f'Odd ranks call {c1} while even ranks do not call any collective'
replace['outcome'] = 'ERROR: CallMatching'
replace['shortdesc'] = 'Incorrect collective ordering'
replace['longdesc'] = f'Odd ranks call {c1} while even ranks do not call any collective'
replace['outcome'] = 'ERROR: CallMatching'
replace['operation1b'] = '' # Remove functions
replace['operation2b'] = ''
replace['operation2a'] = ''
replace['operation1b'] = '' # Remove functions
replace['operation2b'] = ''
replace['operation2a'] = ''
gen.make_file(template, f'CallOrdering_{c1}_none_nok.c', replace)
# Generate a correct ordering with a conditional not depending on ranks
gen.make_file(template, f'CallOrdering_{c1}_none_nok.c', replace)
# Generate a correct ordering with a conditional not depending on ranks
replace['shortdesc'] = 'Correct collective ordering'
replace['longdesc'] = f'All ranks call {c1}'
replace['outcome'] = 'OK'
replace['errormsg'] = ''
replace['change_cond'] = 'nprocs<256'
replace['shortdesc'] = 'Correct collective ordering'
replace['longdesc'] = f'All ranks call {c1}'
replace['outcome'] = 'OK'
replace['errormsg'] = ''
replace['change_cond'] = 'nprocs<256'