Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

HAS_GPU should not be required for builds #278

Open
Kaixhin opened this issue Aug 9, 2016 · 4 comments
Open

HAS_GPU should not be required for builds #278

Kaixhin opened this issue Aug 9, 2016 · 4 comments
Assignees
Labels

Comments

@Kaixhin
Copy link
Contributor

Kaixhin commented Aug 9, 2016

It seems that although the latest builds for kaixhin/cuda-neon are succeeding, they aren't actually building CUDA support. The issue is HAS_GPU in the Makefile, which fails to pick up a GPU during the build. Would it be possible to check that the toolkit works instead of looking for an actual GPU?

@jennifermyers
Copy link
Contributor

Hi Kaixhin,

We recently changed HAS_GPU to be automatically set to whether there was a functional GPU in the system rather than just looking for the presence of the CUDA libraries (which people install for debugging purposes on non-GPU systems).

You should be able to override this with a manual setting as follows:

make HAS_GPU=true

Can you try that?

Thanks!
Jennifer

@jennifermyers jennifermyers self-assigned this Sep 6, 2016
@Kaixhin
Copy link
Contributor Author

Kaixhin commented Sep 7, 2016

I've changed this line from make sysinstall to make sysinstall HAS_GPU=true, but still get the same error when running neon examples/mnist_mlp.yaml using nvidia-docker:

File "/usr/local/bin/neon", line 49, in <module>
    from neon.backends import gen_backend
...
OSError: CUDA driver library not found

Any ideas on how to debug? An issue that might be relevant is NVIDIA/nvidia-docker#37.

@jennifermyers
Copy link
Contributor

Thanks for the pointer. Following up on that, it seems likely that you are running into the same issue as NVIDIA/nvidia-docker#172 which might be addressed by adding /usr/lib/x86_64-linux-gnu to the LD_LIBRARY_PATH. Can you confirm?

@Kaixhin
Copy link
Contributor Author

Kaixhin commented Sep 20, 2016

I've added this location to the front of LD_LIBRARY_PATH before make is called, but this has not helped. For reference, line 20 and below of my Dockerfile has been replaced with the following:

ENV LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:${LD_LIBRARY_PATH}                                                                                                                              
                                                                                                                                                                                               # Clone neon repo and move into it                                                                                                                                                            
RUN cd /root && git clone https://github.com/NervanaSystems/neon.git && cd neon && \                                                                                                          
# Make (no multithreading to save resources/prevent concurrency errors)                                                                                                                       
  make sysinstall HAS_GPU=true
# Set ~/neon as working directory
WORKDIR /root/neon

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants