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

Segmentation Fault with VECs when multithreaded #12

Open
sestephens73 opened this issue Jan 28, 2021 · 2 comments
Open

Segmentation Fault with VECs when multithreaded #12

sestephens73 opened this issue Jan 28, 2021 · 2 comments
Assignees
Labels
bug Something isn't working VECs Related to Virtual Execution Contexts

Comments

@sestephens73
Copy link
Contributor

In the QR-factorization example, we spawn multiple threads for calling into VECs. Each VEC then calls into its own NumPy thread pool to do a qr factorization on its block. A segmentation fault occurs during this process. It's more likely to happen when more threads calling VECs are used.

def VEC_qr(A):
# Acquire lock
VEC_id = VEC_q.get()
mystring = ['|' for x in range(MAX_WORKERS)]
mystring[VEC_id] = 'x'
print(mystring)
with VECs[VEC_id]:
Q, R = np.linalg.qr(fixarr(A))
mystring = ['|' for x in range(MAX_WORKERS)]
mystring[VEC_id] = 'o'
print(mystring)
# Release Lock
VEC_q.task_done()
VEC_q.put(VEC_id)
return Q, R

@insertinterestingnamehere
Copy link
Member

Probably related: #68

@insertinterestingnamehere
Copy link
Member

Probably also related: #61.

@insertinterestingnamehere insertinterestingnamehere added the VECs Related to Virtual Execution Contexts label May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working VECs Related to Virtual Execution Contexts
Projects
None yet
Development

No branches or pull requests

2 participants