Apollo  6.0
Open source self driving car software
Namespaces | Macros | Functions
planning_block.h File Reference
#include <cuda_runtime.h>
Include dependency graph for planning_block.h:

Go to the source code of this file.

Namespaces

 apollo
 PlanningContext is the runtime context in planning. It is persistent across multiple frames.
 
 apollo::planning
 apollo::planning
 

Macros

#define BLOCK_WIDTH   16
 
#define BLOCK_HEIGHT   16
 
#define BLOCK_1   256
 
#define TEMPLATE_ROUTINE_INSTANCE(ret, routine)   template ret routine
 
#define DATA_TRANSFER_INST(type)
 
#define CUDA_CHECK(call)
 

Functions

bool apollo::planning::InitialCuda ()
 
__global__ void apollo::planning::fill_lower_left_gpu (int *iRow, int *jCol, unsigned int *rind_L, unsigned int *cind_L, const int nnz_L)
 
template<typename T >
__global__ void apollo::planning::data_transfer_gpu (T *dst, const T *src, const int size)
 
bool apollo::planning::fill_lower_left (int *iRow, int *jCol, unsigned int *rind_L, unsigned int *cind_L, const int nnz_L)
 
template<typename T >
bool apollo::planning::data_transfer (T *dst, const T *src, const int size)
 

Macro Definition Documentation

◆ BLOCK_1

#define BLOCK_1   256

◆ BLOCK_HEIGHT

#define BLOCK_HEIGHT   16

◆ BLOCK_WIDTH

#define BLOCK_WIDTH   16

◆ CUDA_CHECK

#define CUDA_CHECK (   call)
Value:
{ \
const cudaError_t error = call; \
if (error != cudaSuccess) { \
printf("Error: %s:%d, ", __FILE__, __LINE__); \
printf("code: %d, reasone: %s\n", error, cudaGetErrorString(error)); \
return false; \
} \
}

◆ DATA_TRANSFER_INST

#define DATA_TRANSFER_INST (   type)
Value:
bool, data_transfer(type *dst, const type *src, const int size))
#define TEMPLATE_ROUTINE_INSTANCE(ret, routine)
Definition: planning_block.h:29
bool data_transfer(T *dst, const T *src, const int size)

◆ TEMPLATE_ROUTINE_INSTANCE

#define TEMPLATE_ROUTINE_INSTANCE (   ret,
  routine 
)    template ret routine