-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fix for glibc 2.23 #4369
Fix for glibc 2.23 #4369
Conversation
Avoid "error: 'memcpy' was not declared in the scope" with glibc 2.23. Found in Ubuntu 16.04 with cuda 7.5.18, gcc 5.3.1 and glibc 2.23.
@@ -141,6 +141,9 @@ def compile_args(): | |||
flags.append('-arch=sm_' + str(p['major']) + | |||
str(p['minor'])) | |||
|
|||
# Needed for glibc 2.23 | |||
flags.append('-D_FORCE_INLINES') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is this flag defined? I don't like to use flags I don't know about. Why not fix this by adding include?
Also, I only find memcpy in the CPU code. Do you have the problem with your own op? If not, which op is causing this problem?
That could work too, I have no idea where to add the include though.
I was seeing the problem when running the sample from the 'Testing Theano with GPU' section in doc/tutorial/using_gpu.txt. |
Can you give the full error message? On Wed, Apr 13, 2016 at 12:03 PM, Graham Inggs [email protected]
|
I run:
|
If you just want a quick solution for yourself, you can always add the define you want in gcc.cxxflags in your Theano config. |
For a quick fix, put it in the nvcc.flags Theano flag as this is needed /usr/include/string.h: In function ‘void* mempcpy_inline(void, const Here we see that the error is in your OS, not in Theano. On Wed, Apr 13, 2016 at 2:37 PM, abergeron [email protected] wrote:
|
Thanks! Confirming that this works for me:
It could be that gcc 5.3.1is not officially supported by Nvidia, but I have come across numerous compilation problems similar to |
Indeed cuda 7.5 supports gcc 4.7, 4.8 and 4.9. Also if you are having multiple problems of this nature, that more strongly suggests that either glibc 2.2.3 is broken or your package of it is. I am now closing this since the problem is not in Theano. |
Avoid "error: 'memcpy' was not declared in the scope" with glibc 2.23.
Found in Ubuntu 16.04 with cuda 7.5.18, gcc 5.3.1 and glibc 2.23.