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

Fixing non deterministic error: CUDA Exception: invalid device context #11

Closed
wants to merge 1 commit into from

Conversation

pmlodawski
Copy link
Contributor

Hello!

I was talking before in this thread (AccelerateHS/accelerate#227 (comment)) about non deterministic CUDA error. It looks like removing async call in Data.Array.Accelerate.CUDA.runWith resolves this problem.

Before that fix, in 20 tests error occured 11 times on my PC. Now I have executed it 1000 times and everything was fine.

@tmcdonell
Copy link
Member

This is really just trying to avoid the problem, I would like to fix this properly instead.

@tmcdonell
Copy link
Member

Is this using the test case that is in the linked ticket, or a different program that reproduces the problem so consistently?

@pmlodawski
Copy link
Contributor Author

Yes, this is the same, simple example, running it under ghci.

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

Successfully merging this pull request may close these issues.

2 participants