Go to the source code of this file.
Macros | |
#define | DISABLE_CLASS_COPY(NoCopyClass) |
Copyright (c) 2020, NVIDIA CORPORATION. More... | |
#define | SIMPLE_MOVE_COPY(Cls) |
#define | INFER_UNUSED(a) (void)(a) |
#define | INFER_LOG_FORMAT_(fmt) "%s:%d " fmt, __FILE__, __LINE__ |
#define | INFER_EXPORT_API __attribute__((__visibility__("default"))) |
#define | InferError(fmt, ...) |
#define | InferWarning(fmt, ...) |
#define | InferInfo(fmt, ...) |
#define | InferDebug(fmt, ...) |
#define | RETURN_IF_FAILED(condition, ret, fmt, ...) |
#define | CHECK_NVINFER_ERROR_PRINT(err, action, logPrint, fmt, ...) |
#define | CHECK_NVINFER_ERROR(err, action, fmt, ...) CHECK_NVINFER_ERROR_PRINT(err, action, InferError, fmt, ##__VA_ARGS__) |
#define | RETURN_NVINFER_ERROR(err, fmt, ...) CHECK_NVINFER_ERROR(err, return ifStatus, fmt, ##__VA_ARGS__) |
#define | CONTINUE_NVINFER_ERROR(err, fmt, ...) CHECK_NVINFER_ERROR(err, , fmt, ##__VA_ARGS__) |
#define | CHECK_CUDA_ERR_W_ACTION(err, action, logPrint, fmt, ...) |
#define | CHECK_CUDA_ERR_NO_ACTION(err, fmt, ...) CHECK_CUDA_ERR_W_ACTION(err, , InferError, fmt, ##__VA_ARGS__) |
#define | RETURN_CUDA_ERR(err, fmt, ...) |
#define | CONTINUE_CUDA_ERR(err, fmt, ...) CHECK_CUDA_ERR_NO_ACTION(err, fmt, ##__VA_ARGS__) |
#define | READ_SYMBOL(lib, func_name) lib->symbol<decltype(&func_name)>(#func_name) |
#define | DIVIDE_AND_ROUND_UP(a, b) ((a + b - 1) / b) |
#define | INFER_ROUND_UP(value, align) (((value) + (align)-1) & (~((align)-1))) |
#define | INFER_ROUND_DOWN(value, align) ((value) & (~((align)-1))) |
#define | INFER_WILDCARD_DIM_VALUE -1 |
#define | INFER_MEM_ALIGNMENT 1024 |
#define CHECK_CUDA_ERR_NO_ACTION | ( | err, | |
fmt, | |||
... | |||
) | CHECK_CUDA_ERR_W_ACTION(err, , InferError, fmt, ##__VA_ARGS__) |
Definition at line 108 of file infer_defines.h.
#define CHECK_CUDA_ERR_W_ACTION | ( | err, | |
action, | |||
logPrint, | |||
fmt, | |||
... | |||
) |
Definition at line 98 of file infer_defines.h.
#define CHECK_NVINFER_ERROR | ( | err, | |
action, | |||
fmt, | |||
... | |||
) | CHECK_NVINFER_ERROR_PRINT(err, action, InferError, fmt, ##__VA_ARGS__) |
Definition at line 88 of file infer_defines.h.
#define CHECK_NVINFER_ERROR_PRINT | ( | err, | |
action, | |||
logPrint, | |||
fmt, | |||
... | |||
) |
Definition at line 78 of file infer_defines.h.
#define CONTINUE_CUDA_ERR | ( | err, | |
fmt, | |||
... | |||
) | CHECK_CUDA_ERR_NO_ACTION(err, fmt, ##__VA_ARGS__) |
Definition at line 115 of file infer_defines.h.
#define CONTINUE_NVINFER_ERROR | ( | err, | |
fmt, | |||
... | |||
) | CHECK_NVINFER_ERROR(err, , fmt, ##__VA_ARGS__) |
Definition at line 94 of file infer_defines.h.
#define DISABLE_CLASS_COPY | ( | NoCopyClass | ) |
Copyright (c) 2020, NVIDIA CORPORATION.
All rights reserved.
NVIDIA Corporation and its licensors retain all intellectual property and proprietary rights in and to this software, related documentation and any modifications thereto. Any use, reproduction, disclosure or distribution of this software and related documentation without an express license agreement from NVIDIA Corporation is strictly prohibited.
Definition at line 25 of file infer_defines.h.
#define DIVIDE_AND_ROUND_UP | ( | a, | |
b | |||
) | ((a + b - 1) / b) |
Definition at line 121 of file infer_defines.h.
#define INFER_EXPORT_API __attribute__((__visibility__("default"))) |
Definition at line 44 of file infer_defines.h.
#define INFER_LOG_FORMAT_ | ( | fmt | ) | "%s:%d " fmt, __FILE__, __LINE__ |
Definition at line 41 of file infer_defines.h.
#define INFER_MEM_ALIGNMENT 1024 |
Definition at line 125 of file infer_defines.h.
#define INFER_ROUND_DOWN | ( | value, | |
align | |||
) | ((value) & (~((align)-1))) |
Definition at line 123 of file infer_defines.h.
#define INFER_ROUND_UP | ( | value, | |
align | |||
) | (((value) + (align)-1) & (~((align)-1))) |
Definition at line 122 of file infer_defines.h.
#define INFER_UNUSED | ( | a | ) | (void)(a) |
Definition at line 36 of file infer_defines.h.
#define INFER_WILDCARD_DIM_VALUE -1 |
Definition at line 124 of file infer_defines.h.
#define InferDebug | ( | fmt, | |
... | |||
) |
Definition at line 64 of file infer_defines.h.
#define InferError | ( | fmt, | |
... | |||
) |
Definition at line 46 of file infer_defines.h.
#define InferInfo | ( | fmt, | |
... | |||
) |
Definition at line 58 of file infer_defines.h.
#define InferWarning | ( | fmt, | |
... | |||
) |
Definition at line 52 of file infer_defines.h.
#define READ_SYMBOL | ( | lib, | |
func_name | |||
) | lib->symbol<decltype(&func_name)>(#func_name) |
Definition at line 118 of file infer_defines.h.
#define RETURN_CUDA_ERR | ( | err, | |
fmt, | |||
... | |||
) |
Definition at line 111 of file infer_defines.h.
#define RETURN_IF_FAILED | ( | condition, | |
ret, | |||
fmt, | |||
... | |||
) |
Definition at line 70 of file infer_defines.h.
#define RETURN_NVINFER_ERROR | ( | err, | |
fmt, | |||
... | |||
) | CHECK_NVINFER_ERROR(err, return ifStatus, fmt, ##__VA_ARGS__) |
Definition at line 91 of file infer_defines.h.
#define SIMPLE_MOVE_COPY | ( | Cls | ) |
Definition at line 29 of file infer_defines.h.