Better support for different local memory sizes and maximum number of threads per block