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

When GPU device id > 0, error: cudaSuccess (77 vs. 0) an illegal memory access was encountered #19

Open
EvanWeiner opened this issue Oct 4, 2016 · 6 comments

Comments

@EvanWeiner
Copy link

After following all the instructions, and running the demo, I get:

F1004 19:15:23.296233 20261 syncedmem.hpp:18] Check failed: error == cudaSuccess (77 vs. 0) an illegal memory access was encountered

I tried with CUDNN on and off. I'm using TitanX. Any advice?

@EvanWeiner
Copy link
Author

EvanWeiner commented Oct 5, 2016

I found this error will occur if gpu device id > 0

@oh233 , why if I set gpu device id > 0, I will get this error? I tried different GPUs, different machines, different environments, still the same error. Only if I select device id = 0, then it will work. Please help!

@EvanWeiner
Copy link
Author

To reproduce, just run: ./tools/demo.py --gpu 1 on a system with 2 or more GPUs.

@EvanWeiner EvanWeiner changed the title cudaSuccess (77 vs. 0) an illegal memory access was encountered When GPU device id > 0, error: cudaSuccess (77 vs. 0) an illegal memory access was encountered Oct 6, 2016
@ferranrigual
Copy link

Any updates on this issue? We would REALLY like to parallelize our trainings. Thank you.

@HaozhiQi
Copy link
Collaborator

This is an incorrect setting in the demo.py. The cfg.GPU_ID is not reset in your case. Therefore the nms will output some incorrect values that cause illegal memory accessing.

It will not cause errors in train_net/test_net since cfg.GPU_ID is set accordingly in those scripts.

This is fixed in bc9a269 .

@qinhaifangpku
Copy link

@oh233 hi~ I wonder why the cfg.GPU_ID would influence the values output from the nms?
thank you in advance !

@MartinPlantinga
Copy link

This is also the case for Affordance Net. There under ./tools/demo.py the line cfg.GPU_ID = args.gpu_id has to be added.

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

5 participants