choose proper thread number per block according to CUDA architecture.