42 #define TOTAL_THREADS 1024
43 #define THREADS_PER_BLOCK 256
44 #define DIVUP(m, n) ((m) / (n) + ((m) % (n) > 0))
47 const int pow_2 = std::log(
static_cast<double>(work_size)) / std::log(2.0);
56 dim3 block_config(x_threads, y_threads, 1);
#define TOTAL_THREADS
Definition: cuda_utils.h:42
int OptNumThreads(int work_size)
Definition: cuda_utils.h:46
dim3 OptBlockConfig(int x, int y)
Definition: cuda_utils.h:52
Definition: PinholeCameraIntrinsic.cpp:16