Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if bf.barrier() is working properly #51

Open
hanbinhu opened this issue Oct 2, 2020 · 0 comments
Open

Check if bf.barrier() is working properly #51

hanbinhu opened this issue Oct 2, 2020 · 0 comments
Assignees
Labels
bug Something isn't working investigation This issues requires more investigation

Comments

@hanbinhu
Copy link
Collaborator

hanbinhu commented Oct 2, 2020

Currently bf.barrier() doesn't make sure the order of the outputs is correct, for example the following code snippets

for i in range(2):
  bf.barrier()
  if rank == 0:
    print("A")
  bf.barrier()
  print("B")

Expected Output of bfrun -np 2

A
B
B
A
B
B

Possible output now:

A
B
B
B
A
B
@hanbinhu hanbinhu added bug Something isn't working investigation This issues requires more investigation labels Oct 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working investigation This issues requires more investigation
Projects
None yet
Development

No branches or pull requests

2 participants