Function TRTSERVER_ServerRegisterSharedMemory

Function Documentation

TRTSERVER_Error *TRTSERVER_ServerRegisterSharedMemory(TRTSERVER_Server *server, TRTSERVER_SharedMemoryBlock *shared_memory_block)

Register a shared memory block on the inference server.

After a block is registered, addresses within the block can be used for input and output tensors in inference requests. If a shared memory block with the same name is already registered TRTSERVER_ERROR_ALREADY_EXISTS is returned.

Return

a TRTSERVER_Error indicating success or failure.

Parameters
  • server: The inference server object.

  • shared_memory_block: The shared memory block to register.