summaryrefslogtreecommitdiff
path: root/notes
diff options
context:
space:
mode:
authorAdam Harvey <adam@ahprojects.com>2019-01-07 18:56:43 +0100
committerAdam Harvey <adam@ahprojects.com>2019-01-07 18:56:43 +0100
commit807503666f06c5b22b752e32362a0b4ceacc1a5e (patch)
tree3afab14e30a34dc0e7c1691b68ad85aff4239441 /notes
parent08fe36111de64ba35a90619dc088f9120477de1c (diff)
update install notes
Diffstat (limited to 'notes')
-rw-r--r--notes/frameworks/installations.md36
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)"
+```