Function Pennylane::LightningTensor::TNCuda::Util::setWorkSpaceMemory

Function Documentation

inline void Pennylane::LightningTensor::TNCuda::Util::setWorkSpaceMemory(const cutensornetHandle_t &tncuda_handle, cutensornetWorkspaceDescriptor_t &workDesc, void *scratchPtr, std::size_t &worksize)

Set memory for a workspace.

Parameters
  • tncuda_handle – cutensornetHandle_t

  • workDesc – cutensornet work space descriptor

  • scratchPtr – Pointer to scratch memory

  • worksize – Memory size of a work space