diff options
Diffstat (limited to 'notes/frameworks')
| -rw-r--r-- | notes/frameworks/installations.md | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/notes/frameworks/installations.md b/notes/frameworks/installations.md new file mode 100644 index 00000000..f15f4157 --- /dev/null +++ b/notes/frameworks/installations.md @@ -0,0 +1,36 @@ +# Installations + + +## DLIB + +``` +# Install dlib with CUDA enabled +# installing in conda env python=3.6 + +# clone +git clone https://github.com/davisking/dlib + +# vars +export CUDA_HOME=/usr/local/cuda +export LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH +export PATH=$CUDA_HOME/bin:$PATH + +# make +#mkdir build; cd build; cmake .. ; cmake --build . +mkdir build; cd build; cmake .. -DUSE_AVX_INSTRUCTIONS=1; cmake --build . + +# install +#python setup.py install +python setup.py install --yes USE_AVX_INSTRUCTIONS --yes DLIB_USE_CUDA + +# test +cd dlib/test +mkdir build +cd build +cmake .. +cmake --build . --config Release +./dtest --runall + +# test cuda +python -c "import dlib; print('CUDA enabled:', dlib.DLIB_USE_CUDA)" +``` |
