61 #define TOTAL_THREADS 1024 62 #define THREADS_PER_BLOCK 256 63 #define DIVUP(m, n) ((m) / (n) + ((m) % (n) > 0)) 66 const int pow_2 = std::log(static_cast<double>(work_size)) / std::log(2.0);
75 dim3 block_config(x_threads, y_threads, 1);
#define TOTAL_THREADS
Definition: cuda_utils.h:61
int OptNumThreads(int work_size)
Definition: cuda_utils.h:65
Definition: PinholeCameraIntrinsic.cpp:35
dim3 OptBlockConfig(int x, int y)
Definition: cuda_utils.h:71