向上取整

(a+(b-1))/b
34 / 11 + (34 % 11 != 0 ? 1 : 0)

CUDA计算中,可以采用这两种方式来表示向上取整。

原文地址:https://www.cnblogs.com/liangliangdetianxia/p/3985002.html