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

a cuda runtime call was likely performed without using a streamExecutor context #2

Closed
zack6514 opened this issue Jun 24, 2016 · 2 comments

Comments

@zack6514
Copy link

Hey, when I use your demo, and run: python caption -i images/pizza.jpg, But get the problem: "a cuda runtime call was likely performed without using a streamExecutor context" which caused by the code of "with tf.Session as session", I know it because the file use caffe to extract cnn features and causes the cuda conflicting with tensorflow , what can I do?

@mosessoh
Copy link
Owner

i've only set up the demo to work in CPU mode at the moment. the tensorflow training of the model is the only part that is set up for GPU as that takes a lot of time.

this problem has been documented as a tensorflow / caffe conflict here. one solution (which i used) is to disable the GPU functionality for caffe, and only allow tensorflow to use the GPU. i'll close this issue as it's not a problem with the demo script.

@zack6514
Copy link
Author

zack6514 commented Jun 27, 2016

I know it is not the problem with the demo script. But the script has setted the caffe.set_mode_cpu(), it cannot solve this problem, could you give me why?

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