diff --git a/cuda_bindings/examples/0_Introduction/simpleP2P_test.py b/cuda_bindings/examples/0_Introduction/simpleP2P_test.py index 1b21166de2..637c31cf0e 100644 --- a/cuda_bindings/examples/0_Introduction/simpleP2P_test.py +++ b/cuda_bindings/examples/0_Introduction/simpleP2P_test.py @@ -73,7 +73,7 @@ def main(): ) print( "> Peer access from {} (GPU{}) -> {} (GPU{}) : {}\n".format( - prop[j].name, j, prop[i].name, i, "Yes" if i_access_j else "No" + prop[j].name, j, prop[i].name, i, "Yes" if j_access_i else "No" ) ) if i_access_j and j_access_i: diff --git a/cuda_bindings/examples/extra/isoFDModelling_test.py b/cuda_bindings/examples/extra/isoFDModelling_test.py index f21877b2db..d5c48025d1 100644 --- a/cuda_bindings/examples/extra/isoFDModelling_test.py +++ b/cuda_bindings/examples/extra/isoFDModelling_test.py @@ -649,7 +649,7 @@ def main(): ) print( "> Peer access from {} (GPU{}) -> {} (GPU{}) : {}\n".format( - prop[j].name, j, prop[i].name, i, "Yes" if i_access_j else "No" + prop[j].name, j, prop[i].name, i, "Yes" if j_access_i else "No" ) ) if i_access_j and j_access_i: