Skip to content
This repository has been archived by the owner. It is now read-only.

Add GPU support #9

Merged
merged 1 commit into from Oct 28, 2018
Merged

Add GPU support #9

merged 1 commit into from Oct 28, 2018

Conversation

@uniq10
Copy link
Contributor

@uniq10 uniq10 commented Feb 1, 2018

distutils cannot compile CUDA code by default. Therefore, this commit
uses make to build darknet with GPU and CUDNN flags.

GPU=1 pip install lightnet installs lightnet with GPU support.
CUDNN=1 pip install lightnet installs lightnet with CUDNN support.

distutils cannot compile CUDA code by default. Therefore, this commit
uses `make` to build darknet with GPU and CUDNN flags.

`GPU=1 pip install lightnet` installs lightnet with GPU support.
`CUDNN=1 pip install lightnet` installs lightnet with CUDNN support.
@kumaranvpl
Copy link

@kumaranvpl kumaranvpl commented Apr 25, 2018

Hi @uniq10,

How can I compile and install your branch in my local pip?

@uniq10
Copy link
Contributor Author

@uniq10 uniq10 commented Apr 25, 2018

Hi @kumaranvpl checkout to my branch and do CUDNN=1 pip install . to install with my changes.
Make sure the CUDA and CUDNN is properly installed before you proceed.

@kumaranvpl
Copy link

@kumaranvpl kumaranvpl commented Apr 25, 2018

Hi @uniq10,
I did that. But it throws this error "lightnet/lightnet.c not found".
Also I have one more doubt.
What is the difference between "GPU=1 pip install ." and "CUDNN=1 pip install ."

@uniq10
Copy link
Contributor Author

@uniq10 uniq10 commented Apr 25, 2018

@kumaranvpl can you post the full error message? Do you have lightnet already installed?

GPU=1 just uses CUDA while CUDNN=1 uses CuDNN too.

@kumaranvpl
Copy link

@kumaranvpl kumaranvpl commented Apr 26, 2018

Hi @uniq10,
I don't have it installed already. I am trying "pip install ." inside a virtualenv.
Error was thrown at this line.
So I downloaded lightnet from pypi, extracted it and placed the lightnet.c file inside lightnet and pip install ran successfully

@ines ines merged commit e7283d9 into explosion:master Oct 28, 2018
0 of 2 checks passed
0 of 2 checks passed
continuous-integration/appveyor/pr AppVeyor build failed
Details
continuous-integration/travis-ci/pr The Travis CI build failed
Details
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.