TRT Utils#
-
struct DlDeleter#
Custom deleter for dynamic library handles.
Handles proper cleanup of dynamically loaded libraries using dlclose.
Public Functions
-
inline void operator()(void *handle) const noexcept#
Delete operator for library handles.
- Parameters:
handle – Library handle to close
-
inline void operator()(void *handle) const noexcept#
- std::optional<std::pair<cudaGraph_t, cudaGraphExec_t>> trt_edgellm::captureTRTCudaGraph(
- nvinfer1::IExecutionContext *context,
- cudaStream_t stream
Capture a TensorRT CUDA graph from an execution context and stream.
- Returns:
Pair of graph and graph exec on success, std::nullopt on failure
- std::string trt_edgellm::dimsToString(
- nvinfer1::Dims const &dims
Convert TensorRT dimensions to a string representation.
- std::string trt_edgellm::printEngineInfo(
- nvinfer1::ICudaEngine const *engine,
- int32_t profileIndex
Print the engine information for a specific profile index.