gpu cpu affinity

http://stackoverflow.com/questions/16056800/multi-gpu-programming-using-cuda-on-a-numa-machine #!/bin/bash #this script will output a listing of each GPU and it’s CPU core affinity mask file=”/proc/driver/nvidia/gpus/0/information” if [ ! -e $file ]; then echo “Unable to locate any GPUs!” else gpu_num=0 file=”/proc/driver/nvidia/gpus/$gpu_num/information” if [ “-v” == “$1” ];

Avoid escape characters in GIT

http://michael.otacoo.com/linux-2/avoid-escape-characters-in-git/ The first one is to change the pager to “more”. git config –global core.pager more The second one is to append an additional command with “less -r”. git diff –color | less -r git log -p –color | less