copyright © wei hwu, 2008