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

CUDA tests failing #29

Open
craabreu opened this issue Jun 26, 2022 · 1 comment
Open

CUDA tests failing #29

craabreu opened this issue Jun 26, 2022 · 1 comment

Comments

@craabreu
Copy link

The ExampleForce tests fail in the CUDA platform when executing the following line:

I compiled both OpenMM and this plugin with the same GCC compiler (version 11.2.0) and CudaToolkit installation (version 11.7).

The error message I get is:

exception: Error uploading array bondParams: CUDA_ERROR_INVALID_CONTEXT (201)
@peastman
Copy link
Member

I can only guess about what might be causing it. Most likely it isn't really related to that line. Something went wrong earlier, and that's just the first place it got noticed. Here are a few possibilities.

  • If you put your computer to sleep and wake it up, that can cause existing contexts to be reset.
  • It might be caused by an incompatibility between your CUDA driver and toolkit, or alternatively between pieces of code compiled against different toolkit versions. What driver do you have? And make sure you're really using the toolkit you think you are. If you have multiple toolkits on your computer (such as one from the NVIDIA installer and one from conda), it might be picking up a different one.
  • Sometimes things just get messed up for no obvious reason! Rebooting usually fixes them.

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

2 participants