Jan. 26th, 2017

old_ufo: (Default)
Recipe from here
"So, I've spent a week and a half getting Caffe to work on my machine. I've finally managed to do so on my Asus N551JQ which is running on Ubuntu 14.04 LTS. The laptop features an NVIDIA GT845M dGPU and Intel HD Graphics iGPU, which caused some problems installing NVIDIA drivers. However, everything is working now. As it took me a long time to get everything running, I figured I could help future users by explaining my method of installation. Below is the method I used:

  1. Install a clean version of Ubuntu 14.04 LTS
  2. Remove UEFI secure boot. sudo mokutil --enable-validation After restart Mok managment will pop up. There will be an option where you can enable secure boot (just like you disabled after installing Ubuntu). - from http://askubuntu.com/a/768822/241348
  3. remove dkms and  bbswitch and bumbleebee 
  4. Download NVIDIA Geforce driver 352.79 from: http://www.geforce.com/drivers
  5. Download CUDA 7.0 from: https://developer.nvidia.com/cuda-toolkit-70
  6. Follow post #4 on the following link untill point 5 http://ubuntuforums.org/showthread.php?t=2246526#4.
    instruction )to /etc/modprobe.d/blacklist.conf and rebooting
    3. When you reboot, don't log in. Drop to the terminal by CTRL-ALT-F1, and kill lightdm by
    sudo service lightdm stop
    4. Extract the individual parts from the cuda toolkit archive you downloaded earlier by
    ./<cuda-archive-name> --extract=<your_fav_dir>
    5. Navigate to your_fav_dir
  7. Then navigate to the download directory where you saved the drivers that you previously downloaded in step 2 of this tutorial and run the setup by: sudo ./NVIDIA-Linux-x86_64-352.79.run --no-opengl-files
  8. Do not exclude the --no-opengl-files part.
  9. Go on with step 7 of the guide in the link by going into the directory in which you extracted the CUDA archive and installing CUDA and its samples.
  10. Then go on with the guide in post #5 in the same thread. Thereafter, NVIDIA drivers should be working and CUDA should be installed. Time to start with the Caffe installation!
  11. You can pretty much follow the following guide: http://caffe.berkeleyvision.org/install_apt.html Be sure to correctly install ALL dependencies. If anything fails, fix it.
  12. After compilation, my make runtest wouldn't start. I had to set an environment variable in ~/.profile "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64" and had to reboot before it started and succesfully executed.
By now, everything should work. Congratulations!

Hope I have helped you.


Emiel Stoelinga"


old_ufo: (Default)

July 2017

16 171819202122

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 25th, 2017 06:11 am
Powered by Dreamwidth Studios