Random Useful Stuff

31 Mar 2016

  1. CUDA_VISIBLE_DEVICES=1 python program.py
  2. nvidia-smi

Starting notebook in specific browser (because SL7 is complete mess to work with sometimes)

  1. nice ipython notebook --browser=firefox

Befor the advent of the AUTODIFF:

  1. Derivative of the KL Divergence between two exponential family distributions \(q(x|\alpha)\) and \(p(x| \beta)\) : \((\alpha - \beta)^TI(\alpha)\)
  2. Here \(I(\alpha)\) is the Fisher Information, which is also the second derivative of the log normalizer in case of exponential family.

Sometimes my machine decides to not read my rc file and so I need to export these munually:

  1. export LD_LIBRARY_PATH=/lib64:/lib:~/atlas:/opt/cuda-7.5.18/lib64:$LD_LIBRARY_PATH
  2. export ATLAS=~/atlas/libatlas.so