-
Notifications
You must be signed in to change notification settings - Fork 186
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.driver.CompileError: nvcc preprocessing failed #13
Comments
Looks like a problem with pycuda. Did you add cuda and cudnn to your environment variables as per the install guide? |
@andrewginns Thank you for your quick reply. Yes, all environment variables are set: PATH:
CUDA_PATH: |
Same problem here, use win10 64bit, gtx1070 gpu, cuda 8.0, python3.6 and tensorflow-gpu 1.3. Tried to search the internet but got nothing worth mention. Would like to know if there could be anyone who can help with this issue. Really appreciate for that. |
Could you pass the PyCuda driver-test.py as shown in Linux and run the same command on Windows? @SystemErrorWang @Spenhouet |
@LouieYang I am sorry that I am not sure what does it mean by "pass the PyCuda driver-test.py as shown in Linux". I tried to find driver-test.py in windows and found a few, but they were not in the pycuda folder.(one in site-packages/theano, another in site-packages/numba) |
@LouieYang I also tested this code under linux(ubuntu 14.04) with default settings, but the code stopped automatically after 30 iterations without any trace-backs or error information, and generated an gray image. |
@SystemErrorWang In Linux, there is a python file called "test_driver.py", under "pycuda-version-you-installed/test/", you can run pycuda unit test by |
@Spenhouet Do you have the environment variables for CUDA_HOME, CUDA_PATH and CUDA_PATH_V8_0 set? Your error looks like a pycuda error as @LouieYang has mentioned. Can you successfully run any other CUDA based propgrams? Alternatively if you're using windows try my Windows specific fork. It definitely works on my setup:
|
@andrewginns Did you see my reply to your first question: #13 (comment)? I listed there all the environment variables that are set in my system. Also yes. I can run any other CUDA based program. Also as I already said in my original post, this error occur after running 1000 iterations (so obviously the first 1000 iterations are working). |
It happened to me recently and I fixed in the following way, I hope it can helps someone.
If not, perhaps you are missing a Visual Studio compiler in the PATH, just add: |
I had the same problem.I confirmed that the PATH of CUDA and Visual Studio are set. Windows 10 64 bit and I got the following error message. Then, I changed the compiler PATH, the compilation was successful. "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64" Thank you. |
@toropippi Could you please let me know the processes you made to change the complier PATH? |
@yichengggg, PATH: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin and In my case, I spend so much time because I don't know compiler's system environment setting problem and also VS community problem. So Plz check window's Start button -> search -> Visual Studio Installer -> 'installed' tap -> modification(the first button) -> CHECK : "desktop development by using C++" is checking Good luck. |
I'm not sure if you can help on this issue or if someone using this implementation had the same problem but after running the training (for example with --style_option 1 after 1000 iterations), I get the following error:
I couldn't find any help with googling so maybe someone here knows what to do, to try or what this even come from?
My PC:
The text was updated successfully, but these errors were encountered: