Tensorflow with gpu
← Older revision
Revision as of 22:25, 13 June 2018
(13 intermediate revisions by the same user not shown)Line 1:
Line 1:
−==Pre==+==Requirements==
−* check device+* Kubuntu 16.04.4 LTS
− ~$ lspci | grep NVIDIA+==Setup==
+* Check device
+ <font size='2'><b>~$ lspci | grep NVIDIA</b>
81:00.0 VGA compatible controller: NVIDIA Corporation GF119 [GeForce GT 610] (rev a1) 81:00.0 VGA compatible controller: NVIDIA Corporation GF119 [GeForce GT 610] (rev a1)
− 81:00.1 Audio device: NVIDIA Corporation GF119 HDMI Audio Controller (rev a1)+ 81:00.1 Audio device: NVIDIA Corporation GF119 HDMI Audio Controller (rev a1)</font>
−* check driver version+
− ~$ cat /proc/driver/nvidia/version+* Check driver version:
+ <font size='2'><b>~$ cat /proc/driver/nvidia/version</b>
NVRM version: NVIDIA UNIX x86_64 Kernel Module 387.26 Thu Nov 2 21:20:16 PDT 2017 NVRM version: NVIDIA UNIX x86_64 Kernel Module 387.26 Thu Nov 2 21:20:16 PDT 2017
− GCC version: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)+ GCC version: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)</font>
−* install cuda 9.0 with patches
− https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1604&target_type=deblocal
−* then
− sudo apt-get install cuda-9-2 # included on that NVidia page
− https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#post-installation-actions+* Install cuda 9.2 with patch(es):
−*+ <font size='2'>https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1604&target_type=deblocal:
− ~$ export PATH=/usr/local/cuda-9.2/bin${PATH:+:${PATH}}+ <b>~$ sudo dpkg -i cuda-repo-ubuntu1604-9-2-local_9.2.88-1_amd64.deb
− ~$ export LD_LIBRARY_PATH=/usr/local/cuda-9.2/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}+ ~$ sudo apt-key add /var/cuda-repo-9-2-local/7fa2af80.pub
−*+ ~$ sudo apt-get update
− ~$ nvidia-smi + ~$ sudo apt-get install cuda</b>
− Thu Apr 26 12:39:25 2018 + <b># INSTALL THE PATCH(ES)</b></font>
+
+* Might need to reboot PC. If cuda 9.2 got installed over other version, nvidia tools will be throwing errors about driver versions mismatching, try
+ <font size='2'><b>~$ nvidia-smi</b></font>
+Good looking output:
+ <font size='2'>Wed Jun 13 15:55:44 2018
+-----------------------------------------------------------------------------+ +-----------------------------------------------------------------------------+
− | NVIDIA-SMI 387.26 Driver Version: 387.26 |+ | NVIDIA-SMI 396.26 Driver Version: 396.26 |
|-------------------------------+----------------------+----------------------+ |-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================| |===============================+======================+======================|
− | 0 GeForce GT 610 Off | 00000000:81:00.0 N/A | N/A |+ | 0 GeForce GTX 750 Ti Off | 00000000:01:00.0 On | N/A |
− | N/A 31C P8 N/A / N/A | 148MiB / 956MiB | N/A Default |+ | 33% 36C P8 1W / 46W | 229MiB / 2000MiB | 0% Default |
+-------------------------------+----------------------+----------------------+ +-------------------------------+----------------------+----------------------+
Line 34:
Line 38:
| GPU PID Type Process name Usage | | GPU PID Type Process name Usage |
|=============================================================================| |=============================================================================|
− | 0 Not Supported |+ | 0 1305 G /usr/lib/xorg/Xorg 136MiB |
− +-----------------------------------------------------------------------------++ | 0 3587 G /usr/bin/krunner 1MiB |
+ | 0 3590 G /usr/bin/plasmashell 67MiB |
+ | 0 3693 G /usr/bin/plasma-discover 20MiB |
+ +-----------------------------------------------------------------------------+</font>
+
+* Check out post installation docs:
+ <font size='2'>https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#post-installation-actions:
+ # Export paths
+ <b>~$ export PATH=/usr/local/cuda-9.2/bin${PATH:+:${PATH}}
+ ~$ export LD_LIBRARY_PATH=/usr/local/cuda-9.2/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}</b></font>
−* install tensorflow+* Install TensorFlow:
+ <font size='2'># docs:
+ # - https://www.tensorflow.org/install/install_linux
+ # some instructions:
~$ sudo apt-get install python3-pip # if it is not already installed ~$ sudo apt-get install python3-pip # if it is not already installed
−
~$ sudo pip3 install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.7.0-cp35-cp35m-linux_x86_64.whl ~$ sudo pip3 install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.7.0-cp35-cp35m-linux_x86_64.whl
Oleg
06/13/18 [imagej-elphel][gpu] by AndreyFilippov: refactoring, fighting small bugs
AndreyFilippov committed changes to the Elphel git project :
refactoring, fighting small bugs
refactoring, fighting small bugs
06/12/18 [python3-imagej-tiff][master] by Oleg Dzhimiev: pack tiles inside nested list comprehension
Oleg Dzhimiev committed changes to the Elphel git project :
pack tiles inside nested list comprehension
pack tiles inside nested list comprehension
06/12/18 [python3-imagej-tiff][master] by Oleg Dzhimiev: pack tile class
Oleg Dzhimiev committed changes to the Elphel git project :
pack tile class
pack tile class
06/12/18 [python3-imagej-tiff][master] by Oleg Dzhimiev: +2 tests
Oleg Dzhimiev committed changes to the Elphel git project :
+2 tests
+2 tests
06/12/18 [imagej-elphel][gpu] by AndreyFilippov: More work on poles
AndreyFilippov committed changes to the Elphel git project :
More work on poles
More work on poles
Eyesis4Pi 393 User Guide - Recording
← Older revision
Revision as of 17:50, 12 June 2018
Line 22:
Line 22:
$ chmod 777 settings.xml $ chmod 777 settings.xml
This file restores the settings from previous session.</font> This file restores the settings from previous session.</font>
+
+===Dependencies===
+* php5.6-xml
+ ~$ sudo apt install php5.6-xml
+ ~$ sudo service restart apache2
== Equipment/Package == == Equipment/Package ==
Oleg
06/10/18 [imagej-elphel][dct] by AndreyFilippov: Developing street pole distance measurement with dual-quad rig
AndreyFilippov committed changes to the Elphel git project :
Developing street pole distance measurement with dual-quad rig
Developing street pole distance measurement with dual-quad rig
06/08/18 [imagej-elphel][gpu] by AndreyFilippov: Working on pole detection
AndreyFilippov committed changes to the Elphel git project :
Working on pole detection
Working on pole detection
06/07/18 [python3-imagej-tiff][master] by Oleg Dzhimiev: packing data, initial
Oleg Dzhimiev committed changes to the Elphel git project :
packing data, initial
packing data, initial
06/07/18 [python3-convert-jp4][master] by Oleg Dzhimiev: + batch conversion
Oleg Dzhimiev committed changes to the Elphel git project :
+ batch conversion
+ batch conversion
06/07/18 [imagej-elphel][gpu] by AndreyFilippov: vertical averaging after 2d-correlation notch filter
AndreyFilippov committed changes to the Elphel git project :
vertical averaging after 2d-correlation notch filter
vertical averaging after 2d-correlation notch filter
06/07/18 [python3-convert-jp4][master] by Oleg Dzhimiev: initial + splitting composite images
Oleg Dzhimiev committed changes to the Elphel git project :
initial + splitting composite images
initial + splitting composite images
06/07/18 [python3-convert-jp4][master] by Oleg K Dzhimiev: Add README.md
Oleg K Dzhimiev committed changes to the Elphel git project :
Add README.md
Add README.md
06/06/18 [imagej-elphel][dct] by AndreyFilippov: Done with poorly textured areas
AndreyFilippov committed changes to the Elphel git project :
Done with poorly textured areas
Done with poorly textured areas
06/06/18 [imagej-elphel][gpu] by AndreyFilippov: Low texture areas - debugging averaging correlation with surface approximation with planes
AndreyFilippov committed changes to the Elphel git project :
Low texture areas - debugging averaging correlation with surface approximation with planes
Low texture areas - debugging averaging correlation with surface approximation with planes
06/05/18 [imagej-elphel][gpu] by AndreyFilippov: continue on correlation with averaging
AndreyFilippov committed changes to the Elphel git project :
continue on correlation with averaging
continue on correlation with averaging
Elphel Software Kit for Ubuntu
ImageJ and Elphel plugins for imageJ
← Older revision Revision as of 21:31, 4 June 2018 Line 294: Line 294: -Xms2048m -Xms2048m -Xmx24576m -Xmx24576m +* Kubuntu 18.04 might need: + https://stackoverflow.com/questions/6784463/error-trustanchors-parameter-must-be-non-empty * From Eclipse: * From Eclipse: 1. File -> Import -> Existing Maven Projects -> set imagej-elphel as Root Directory - a project will appear in the project list -> Finish 1. File -> Import -> Existing Maven Projects -> set imagej-elphel as Root Directory - a project will appear in the project list -> Finish Oleg06/03/18 [imagej-elphel][gpu] by AndreyFilippov: Fixed CM bug for bi-quad, more on low-texture filtering
AndreyFilippov committed changes to the Elphel git project :
Fixed CM bug for bi-quad, more on low-texture filtering
Fixed CM bug for bi-quad, more on low-texture filtering
Pages
