Installation error: ‘memcpy’ was not declared in this scope
When I install the Pytorch package from source, it reports the following problem. My platform is: Ubuntu 16.06 + CUDA 7.5 Note that in Caffe installation, similar problem can be solved in here: By changing the CMakeLists.txt, I wonder whether we have some similar solutions in Pytorch.
ywu36
Further into this problem I found that it is caused by the version of gcc is too new: A usual way to solve it is to add a flag as: flags=-D_FORCE_INLINES before compiling. Is there any place I could insert this command installing Pytorch ?
ywu36
apaszke
Thanks for reply but the error is still there. I’m trying ‘CFLAGS’ instead of ‘CCFLAGS’.
ywu36
But still not working. Might because some other problems…
ywu36
Any update? Even I’m getting the same error.
shiningsurya
update your CUDA to 8.0
smth
ken_zhang