blake optimizations from sp_
launch bound and threads
use sp_'s version instead of mine
change compiler options
add djm's code to cuda_helper.h