Skip to content

Commit

Permalink
Update eessi/testsuite/tests/apps/tensorflow/src/tf_test.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Moors <[email protected]>
  • Loading branch information
casparvl and smoors authored Jul 18, 2023
1 parent 358966e commit 16ddf31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eessi/testsuite/tests/apps/tensorflow/src/tf_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def find_free_port():
def get_local_rank(rank_info, rank_info_list):
'''Function that figures out the local rank based on a list of rank,
hostname, and port gathered from each of the workers'''
# Note that rank_info_vector is sorted by rank, by definition of the MPI allgather routine.
# Thus, if our current rank is the n-th item in rank_info_vector for which the hostname matches,
# Note that rank_info_list is sorted by rank, by definition of the MPI allgather routine.
# Thus, if our current rank is the n-th item in rank_info_list for which the hostname matches,
# our local rank is n
local_rank = 0
for item in rank_info_list:
Expand Down

0 comments on commit 16ddf31

Please sign in to comment.