From 807503666f06c5b22b752e32362a0b4ceacc1a5e Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Mon, 7 Jan 2019 18:56:43 +0100 Subject: update install notes --- notes/frameworks/installations.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 notes/frameworks/installations.md (limited to 'notes/frameworks') 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)" +``` -- cgit v1.2.3-70-g09d2