diff --git a/src/hip_graph_internal.hpp b/src/hip_graph_internal.hpp index 0918f4fc..6db61da2 100644 --- a/src/hip_graph_internal.hpp +++ b/src/hip_graph_internal.hpp @@ -1093,11 +1093,11 @@ class hipGraphMemcpyNode : public hipGraphNode { pCopyParams_ = new hipMemcpy3DParms(*rhs.pCopyParams_); } - hipGraphNode* clone() const { + hipGraphNode* clone() const override { return new hipGraphMemcpyNode(static_cast(*this)); } - hipError_t CreateCommand(hip::Stream* stream) { + hipError_t CreateCommand(hip::Stream* stream) override { if (IsHtoHMemcpy(pCopyParams_->dstPtr.ptr, pCopyParams_->srcPtr.ptr, pCopyParams_->kind)) { return hipSuccess; } @@ -1133,14 +1133,14 @@ class hipGraphMemcpyNode : public hipGraphNode { std::memcpy(pCopyParams_, params, sizeof(hipMemcpy3DParms)); return hipSuccess; } - hipError_t SetParams(hipGraphNode* node) { + hipError_t SetParams(hipGraphNode* node) override { const hipGraphMemcpyNode* memcpyNode = static_cast(node); return SetParams(memcpyNode->pCopyParams_); } // ToDo: use this when commands are cloned and command params are to be updated hipError_t ValidateParams(const hipMemcpy3DParms* pNodeParams); - std::string GetLabel(hipGraphDebugDotFlags flag) { + std::string GetLabel(hipGraphDebugDotFlags flag) override { size_t offset = 0; const HIP_MEMCPY3D pCopy = hip::getDrvMemcpy3DDesc(*pCopyParams_); hipMemoryType srcMemoryType = pCopy.srcMemoryType; @@ -1215,7 +1215,7 @@ class hipGraphMemcpyNode : public hipGraphNode { } return label; } - std::string GetShape(hipGraphDebugDotFlags flag) { + std::string GetShape(hipGraphDebugDotFlags flag) override { if (flag == hipGraphDebugDotFlagsMemcpyNodeParams || flag == hipGraphDebugDotFlagsVerbose) { return "record"; } else {