46 #include <cuda_runtime_api.h> 49 namespace perception {
53 #define NUM_3D_BOX_CORNERS_MACRO 8 54 #define NUM_2D_BOX_CORNERS_MACRO 4 55 #define NUM_THREADS_MACRO 64 // need to be changed when num_threads_ is changed 57 #define DIVUP(m, n) ((m) / (n) + ((m) % (n) > 0)) 59 #define GPU_CHECK(ans) \ 60 { GPUAssert((ans), __FILE__, __LINE__); } 61 inline void GPUAssert(cudaError_t code,
const char* file,
int line,
63 if (code != cudaSuccess) {
64 fprintf(stderr,
"GPUassert: %s %s %d\n", cudaGetErrorString(code), file,
66 if (abort) exit(code);
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
void GPUAssert(cudaError_t code, const char *file, int line, bool abort=true)
Definition: common.h:61