let g:airline_section_c = airline#section#create([‘%F’])
Print CPU Affinity of GPUs
#!/bin/bash FILES=”/proc/driver/nvidia/gpus/*” for f in $FILES do bus=$(basename $f) echo $bus “–>” `cat /sys/class/pci_bus/${bus:0:7}/cpulistaffinity` done
Find Number of CPU sockets
# Count the number of “physical processor(s)” grep “physical id” /proc/cpuinfo | sort -u | wc -l 1 # Count the number of “physical cores per CPU” grep “cpu cores” /proc/cpuinfo |sort -u |cut -d”:” -f2 2 # Count the
EE 460N Handouts
COOL! http://users.ece.utexas.edu/~patt/14f.460N/handouts.html http://users.ece.utexas.edu/~patt/
Transform a LaTeX source document into plain text
detex -l *.tex > thesis.txt
“Show desktop” keyboard shortcut in Mac OS X
command + f3 fn + f11
Split and merge large files
split -b 10k vecadd va. cat va.* > vecadd
rm all files except
find -not -name build.sh -delete
How to change default /tmp to /home/user/tmp
echo $TMPDIR
rm –exclude
find . ! -name *.tgz -delete
ompi_info –all
Package: Open MPI root@login0 Distribution Open MPI: 1.6.4 Open MPI SVN revision: r28081 Open MPI release date: Feb 19, 2013 Open RTE: 1.6.4 Open RTE SVN revision: r28081 Open RTE release date: Feb 19, 2013 OPAL: 1.6.4 OPAL SVN revision:
export CPU_MAX_COMPUTE_UNITS=1
export CPU_MAX_COMPUTE_UNITS=1
Deleting files with zero length
find . -type f -size 0 | xargs rm -f
LCPC 2011
Nice pic!
ACM Category & Terms
http://www.acm.org/about/class/ccs98-html http://www.sheridanprinting.com/typedept/generalterms.htm
How to Disable SELinux
http://www.crypt.gen.nz/selinux/disable_selinux.html In Fedora Core and RedHat Enterprise, edit /etc/selinux/config and change the SELINUX line to SELINUX=disabled:
Why do I see “cpu soft lockup” messages in Red Hat Enterprise Linux
https://access.redhat.com/kb/docs/DOC-17358 Recommended, affects current and next reboot value: sysctl -w kernel.softlockup_thresh=30 Add this line to /etc/sysctl.conf (takes effect on next reboot): kernel.softlockup_thresh=30
What a logo
from IBM
Consistency vs. Coherence
http://people.engr.ncsu.edu/efg/506/s01/lectures/notes/lec14.pdf In the preceding two lectures, we have studied coherence and consistency. What’s the difference? • Coherence assures that values written by one processor are read by other processors. • However, coherence says nothing about when writes will become visible.
Multiline Comment in LaTeX
newcommand{comment}[1]{} comment{ This is a long comment and can extend over multiple lines, etc. }