/home/runner/work/HiCR/HiCR/include/hicr/backends/ascend/computationKernel.hpp Source File
HiCR
|
computationKernel.hpp
Go to the documentation of this file.
72 ComputationKernel(const char *kernelName, const std::vector<tensorData_t> &inputs, const std::vector<tensorData_t> &outputs, const aclopAttr *kernelAttrs)
92 ComputationKernel(const char *kernelPath, const char *kernelName, const std::vector<tensorData_t> &inputs, const std::vector<tensorData_t> &outputs, const aclopAttr *kernelAttrs)
109 static tensorData_t createTensorData(const std::shared_ptr<HiCR::LocalMemorySlot> &memorySlot, aclTensorDesc *tensorDescriptor)
115 if (ascendSlot == NULL) HICR_THROW_LOGIC("Attempting to create Ascend tensor data with a memory slot that is not supported by this backend\n");
118 return ascend::ComputationKernel::tensorData_t{.dataBuffer = ascendSlot->getDataBuffer(), .tensorDescriptor = tensorDescriptor};
This file implements the Kernel class for the Ascend backend.
Provides a definition for the local memory slot class for the Ascend backend.
Definition computationKernel.hpp:45
ComputationKernel(const char *kernelName, const std::vector< tensorData_t > &inputs, const std::vector< tensorData_t > &outputs, const aclopAttr *kernelAttrs)
Definition computationKernel.hpp:72
ComputationKernel(const char *kernelPath, const char *kernelName, const std::vector< tensorData_t > &inputs, const std::vector< tensorData_t > &outputs, const aclopAttr *kernelAttrs)
Definition computationKernel.hpp:92
static tensorData_t createTensorData(const std::shared_ptr< HiCR::LocalMemorySlot > &memorySlot, aclTensorDesc *tensorDescriptor)
Definition computationKernel.hpp:109
__INLINE__ void start(const aclrtStream stream) override
Definition computationKernel.hpp:126
Definition kernel.hpp:36
Provides a definition for a HiCR Local Memory Slot class.
Provides a failure model and corresponding exception classes.
Definition computationKernel.hpp:52
const aclTensorDesc * tensorDescriptor
Definition computationKernel.hpp:60
const aclDataBuffer * dataBuffer
Definition computationKernel.hpp:56
Generated by