Tuesday, May 3, 2016
How to expose only one of several GPUs to a process (masking GPUs)
At the command line:
export CUDA_VISIBLE_DEVICES=0
See: http://www.acceleware.com/blog/cudavisibledevices-masking-gpus
export CUDA_VISIBLE_DEVICES=0
See: http://www.acceleware.com/blog/cudavisibledevices-masking-gpus
Monday, April 18, 2016
LaTeX math mode in Microsoft Powerpoint
Writing equations in Powerpoint doesn't have to be a pain. There's Math Mode.
Alt+= will get you there. Mostly LaTeX compatible.
Note: doesn't work on my Powerpoint for Mac 2016 installation. :/ Alt, N, E, I gets you into insert equation mode there, which also mostly recognizes LaTeX-style math entry.
For more handy tips on mathematical presentations in Powerpoint, see:
Alt+= will get you there. Mostly LaTeX compatible.
Note: doesn't work on my Powerpoint for Mac 2016 installation. :/ Alt, N, E, I gets you into insert equation mode there, which also mostly recognizes LaTeX-style math entry.
For more handy tips on mathematical presentations in Powerpoint, see:
- https://www.cs.bu.edu/~reyzin/pptips.html
- http://www.chem.mtu.edu/~tbco/cm416/EquationEditor_main.pdf
Sunday, April 17, 2016
Look up machine name from IP address
IP address, say, "128.83.139.20".
Simply type:
$ nslookup 128.83.139.20
Output:
Server: 127.0.1.1
Address: 127.0.1.1#53
20.139.83.128.in-addr.arpa name = eldar-9.cs.utexas.edu.
Simply type:
$ nslookup 128.83.139.20
Output:
Server: 127.0.1.1
Address: 127.0.1.1#53
20.139.83.128.in-addr.arpa name = eldar-9.cs.utexas.edu.
Friday, April 15, 2016
List all files in order of size starting at a certain root folder
$ du -a ./ | sort -n -r > du_out.txt
Thursday, April 14, 2016
Install new NVIDIA graphics card and cuda on Linux Mint
NVIDIA driver
Manual install instructions from https://sites.google.com/site/easylinuxtipsproject/12
Manual install instructions from https://sites.google.com/site/easylinuxtipsproject/12
- Power off
- Install card in motherboard slot
- Connect monitor cables to card outputs
- Find out what graphics card you have: $ lspci | grep VGA
- Find out which driver you should download by entering card details at: http://www.nvidia.com/Download/index.aspx?lang=en-us
- Download the driver
- Remove all previous nvidia drivers by running: $ sudo apt-get purge nvidia*
- $ chmod +x -v ~/Downloads/NVIDIA-Linux-*.run
- Switch to terminal only mode: $ sudo service mdm stop
- Login in terminal-only mode
- Run: $ sudo sh ~/Downloads/NVIDIA-Linux-*.run
- Accept all options
- After everything is done, $ sudo reboot
- Did it work?
- Everything should display properly in high res
- $ lsmod | grep nvidia
- $ lspci | grep VGA
- Check if nouveau is still being used (if properly installed, no), by: $ lsmod | grep nouveau
If things didn't go to plan, and you need to uninstall, then:
$ sudo sh ~/Downloads/NVIDIA-Linux-*.run --uninstall
$ sudo rm -v /etc/X11/xorg.conf
$ sudo reboot
CUDA
Again, prefer manual install from https://developer.nvidia.com/cuda-toolkit-archive over official repository cuda packages. Use the run file instructions from http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-linux/#axzz45oaAPyTF. Don't accept offer to reinstall Nvidia drivers during cuda installation.
Again, prefer manual install from https://developer.nvidia.com/cuda-toolkit-archive over official repository cuda packages. Use the run file instructions from http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-linux/#axzz45oaAPyTF. Don't accept offer to reinstall Nvidia drivers during cuda installation.
Monday, April 11, 2016
Nicknames for ssh hosts
You can specify ssh host nicknames through your .ssh/config file. See: https://gist.github.com/dineshj1/9f304084a1f4af27ae2ccf79c134b0e6
Subscribe to:
Posts (Atom)