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

SPN: cudaCheckError() failed : an illegal memory access was encountered #15

Open
youmi-zym opened this issue Mar 28, 2020 · 3 comments
Open

Comments

@youmi-zym
Copy link

Hi,
Thanks for sharing your code, when I use spn it often throws an error: cudaCheckError() failed: an illegal memory access was encountered.
Have you ever encountered?

Running env:
image

@mileyan
Copy link
Owner

mileyan commented Apr 26, 2020

Hi, are you using pytorch 1.0?

@youmi-zym
Copy link
Author

Hi, I'm using pytorch1.2. The problem I met is: if just train or test your model, it goes ok. However, if I iterate the model for more than 1 time, it gives an error: cudaCheckError() failed: illegal memory access was encountered. I guess the error happens since the memory doesn't release after a full iteration, and when iterating the second time, it accesses the memory of the first iteration.

@mileyan
Copy link
Owner

mileyan commented Jun 15, 2020

I think you are right, I guess pytorch might change some of its C extension APIs in version 1.2. Now, this code only supports pytorch 0.4 or 1.0. I will work on it this summer to support pytorch 1.4.

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