Results 33 issues of Shao Tang

[layernorm.cuh] Minor fix with 32 replaced by WARP_SIZE

Move assert outside of kernels into launchers. Early catch the assert failure instead of fail during actual kernel computations.