SWDEV-540272 - copy params 3D struct should be populated even for memcpy 1D graph node (#702)

SWDEV-540272 - copy params 3D struct should be populated even for 1D graph node
这个提交包含在:
Dittakavi, Satyanvesh 编写, GitHub 于 2025-08-12 16:21:53 +05:30 提交
1 父节点 d7f90a3120
当前提交 b50d70564e
1 个文件已更改
+10 -7
+10 -7
查看文件
@@ -1358,7 +1358,7 @@ class GraphKernelNode : public GraphNode {
class GraphMemcpyNode : public GraphNode {
protected:
hipMemcpy3DParms copyParams_;
hipMemcpy3DParms copyParams_{0};
public:
GraphMemcpyNode(const hipMemcpy3DParms* pCopyParams)
@@ -1530,12 +1530,15 @@ class GraphMemcpyNode1D : public GraphMemcpyNode {
public:
GraphMemcpyNode1D(void* dst, const void* src, size_t count, hipMemcpyKind kind,
hipGraphNodeType type = hipGraphNodeTypeMemcpy)
: GraphMemcpyNode(nullptr),
dst_(dst),
src_(src),
count_(count),
kind_(kind) {}
hipGraphNodeType type = hipGraphNodeTypeMemcpy)
: GraphMemcpyNode(nullptr), dst_(dst), src_(src), count_(count), kind_(kind) {
copyParams_.srcPtr.ptr = const_cast<void*>(src);
copyParams_.dstPtr.ptr = dst;
copyParams_.extent.width = count;
copyParams_.extent.height = 1;
copyParams_.extent.depth = 1;
copyParams_.kind = kind;
}
~GraphMemcpyNode1D() {}