Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
`import theano` error workaround for "memcpy was not declared in this scope" #4425
Inspecting the nvcc stderr output revealed that it's related to the following error:
I'm not sure which systems it affects, but I'm using:
As a temporary workaround, I use the following hack:
Ideas are welcome... perhaps we can close this issue and open a "less-hackish-workaround" issue that addresses the actual problem (which I couldn't figure out just yet).
I can confirm that since upgrading to Ubuntu 16.04 LTS, I've encountered this exact bug in torch, tensorflow, and now theano. It would appear the underlying cause to be in CUDA 7.5's interaction with the newer gcc updates, and insufficient compatibility testing on their part. I was previously using 16.04 beta (with slightly older version of gcc) with CUDA 7.5, and had no such problems.