1 #ifndef OPENPOSE_GPU_CUDA_HPP
2 #define OPENPOSE_GPU_CUDA_HPP
11 OP_API void cudaCheck(
const int line = -1,
const std::string&
function =
"",
const std::string& file =
"");
16 const unsigned int totalRequired,
const unsigned int numberCudaThreads =
CUDA_NUM_THREADS)
18 return (totalRequired + numberCudaThreads - 1) / numberCudaThreads;
26 T* targetPtr,
const unsigned char*
const srcPtr,
const int width,
const int height,
const int channels);
29 void uCharImageCast(
unsigned char* targetPtr,
const T*
const srcPtr,
const int volume);
OP_API void getNumberCudaThreadsAndBlocks(dim3 &numberCudaThreads, dim3 &numberCudaBlocks, const Point< unsigned int > &frameSize)
OP_API void cudaCheck(const int line=-1, const std::string &function="", const std::string &file="")
unsigned int getNumberCudaBlocks(const unsigned int totalRequired, const unsigned int numberCudaThreads=CUDA_NUM_THREADS)
void uCharImageCast(unsigned char *targetPtr, const T *const srcPtr, const int volume)
void reorderAndNormalize(T *targetPtr, const unsigned char *const srcPtr, const int width, const int height, const int channels)
const auto CUDA_NUM_THREADS
OP_API int getCudaGpuNumber()