-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Installation fails on Ubuntu 16.04 (‘memcpy’ was not declared in this scope) #670
Comments
@andreaskoepf where'd you get a 16.04 machine? are they available on ec2? |
@soumith I installed on the premises with an iso-image downloaded from ubuntu.com. |
It seems @hughperkins is already working on it torch/cutorch#401 👍 |
Well "worked" on it. I have my own distro fork, which works ok :-) https://github.com/hughperkins/distro (On the other hand, whilst my Ubuntu is cutting edge, but lts, I've decided to create my own Torch lts, so if you use my distro, you get February version of Torch :-D ). For bleeding edge torch "sid", you'll probalby need to fix it yourself, and submit a PR :-) |
@hughperkins ok. Was this the relevant change? hughperkins/distro-cl@357ed7b Anything else? |
That's how I changed it. But in hindsight I'm not sure this is the best place to control the definition. It is ok for me, since I force everyone on OpenCL to use my distro, and only my distro :-D ie, not allowed to do However, to support (Edit: note that you need to update the rockspec too, if you use my current approach, torch/cutorch#402 , but this is already merged to Torch "sid", so should be ok) |
Finally, I moved my fix into CMakeLists.txt actually hughperkins/cutorch@f1f62a1 When I say 'moved', I mean, 'added', need to remove the old 'fix'. |
To be fair, I'm getting:
... so I've been switching to ec2 14.04 to finish building. I assumed it's because my laptop only has 4GB memory, but it might be something more critical.... |
(note: after dropping the |
(but: need to modify cmakelists for cunn too it seems :-D ) |
(so, it would be tempting to add the change to https://github.com/hughperkins/FindCUDA really... if someone can see how to do that, I'll probably accept a PR ) |
(relevant commit for cunn for now hughperkins/cunn@3a752e5 ) |
@hughperkins FWIW I tried your EDIT - now that the CUDA 8.0 RC is available, everyone should start using that on Ubuntu 16.04 |
cool :-) |
A workaround is to install Cuda 8 directly from the 16.04 run file and remove Ubuntu's nvidia-cuda-toolkit package. |
@notkarol can you provide a link? |
https://developer.nvidia.com/cuda-release-candidate-download Log in then navigate: Linux -> x86_64 -> Ubuntu -> 16.04 -> runfile (local) and download cuda_8.0.27_linux-run |
I'd recommend you use the deb package instead. |
Just tried to install Torch on a fresh Ubuntu 16.04 machine. Compilation of cutorch failed with the following error message:
Caffe has a similar issue: BVLC/caffe#4046
Tensorflow had this too: tensorflow/tensorflow#1346
Solution is to define _FORCE_INLINES, e.g. add
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_FORCE_INLINES")
to the CMakeLists.txt files of ctorch, cunn and cunnx.Could somebody more familiar with the CMake configurations of those projects please check what to do?
The text was updated successfully, but these errors were encountered: