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

e-lib: Eliminate potential barrier deadlock #55

Open
olajep opened this issue Jul 18, 2015 · 0 comments
Open

e-lib: Eliminate potential barrier deadlock #55

olajep opened this issue Jul 18, 2015 · 0 comments

Comments

@olajep
Copy link
Contributor

olajep commented Jul 18, 2015

Deadlock if core0 calls e_barrier_init() after some other core calls e_barrier()

Force user to have bar_array in .bss

Then we can eliminate this:
https://github.com/adapteva/epiphany-libs/blob/2015.1/src/e-lib/src/e_mutex_barrier_init.c#L38
which can overwrite flag set here:
https://github.com/adapteva/epiphany-libs/blob/2015.1/src/e-lib/src/e_mutex_barrier.c#L99
and then core0 gets stuck here:
https://github.com/adapteva/epiphany-libs/blob/2015.1/src/e-lib/src/e_mutex_barrier.c#L87

Depends on #54

Unlikely to happen on hw for "normal programs" (e.g., SIMD)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant