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

PyCuda initialization of _driver raised unreported exception Problem #79

Open
hanksoga opened this issue Jun 10, 2020 · 1 comment
Open

Comments

@hanksoga
Copy link

hanksoga commented Jun 10, 2020

Environment

  • Ubuntu 16.04
  • Python 3.5
  • Cuda 10.2
  • Nvidia Driver 415.25
  • CUDNN 7.6.5
  • PyCuda 2019.1.2

ImportError: No module named 'numpy.core._multiarray_umath' Traceback (most recent call last): File "demo.py", line 4, in <module> from centerface import CenterFace File "/home/ubuntu/Downloads/CenterFace-master/prj-tensorrt/centerface.py", line 4, in <module> import pycuda.autoinit File "/usr/local/lib/python3.5/dist-packages/pycuda-2019.1.2-py3.5-linux-x86_64.egg/pycuda/autoinit.py", line 2, in <module> import pycuda.driver as cuda File "/usr/local/lib/python3.5/dist-packages/pycuda-2019.1.2-py3.5-linux-x86_64.egg/pycuda/driver.py", line 62, in <module> from pycuda._driver import * # noqa SystemError: initialization of _driver raised unreported exception

When I execute /prj-tensorrt/demo.py it will show this error message,can anyone help me to slove this problem?THX.

@sxj731533730
Copy link

sxj731533730 commented Nov 6, 2021

i have solved this problem ,you need run the blow command;

sudo su
export PATH=/usr/local/cuda-11.1/bin:/usr/local/cuda/bin:$PATH   
pip install pycuda

fininally, you can use the pycuda to run pyj-tensorrtCenterface in root

https://blog.csdn.net/sxj731533730/article/details/121152327

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