Files
triton/include/isaac/tools/miscellaneous.hpp
Philippe Tillet cf5028d55b Squashed feature branch:
* Added CUDA support
 * Performance improvements
 * API improvements
 * Added "depth" parameter to GEMM
 * Android cross-compilation
2015-04-29 15:52:21 -04:00

23 lines
330 B
C++

#ifndef ISAAC_TOOLS_MISCELLANEOUS_HPP
#define ISAAC_TOOLS_MISCELLANEOUS_HPP
#include <string>
#include <sstream>
namespace isaac
{
namespace tools
{
inline unsigned int align(unsigned int to_round, unsigned int base)
{
if (to_round % base == 0)
return to_round;
return (to_round + base - 1)/base * base;
}
}
}
#endif