Function opensn::gpu_kernel::RoundUp

Function Documentation

inline unsigned int opensn::gpu_kernel::RoundUp(unsigned int num, unsigned int divisor = crb::get_warp_size())

Round up a number to a multiple of the divisor, assuming that the divisor is a power of 2.