SWDEV-377862 - wrong format for memcpy1d
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com> Change-Id: Ide6d252083b1812b0ad9cd182b1435e3e59b3aa1
This commit is contained in:
@@ -496,7 +496,7 @@ struct ihipGraph {
|
|||||||
ihipGraph* clone() const;
|
ihipGraph* clone() const;
|
||||||
void GenerateDOT(std::ostream& fout, hipGraphDebugDotFlags flag) {
|
void GenerateDOT(std::ostream& fout, hipGraphDebugDotFlags flag) {
|
||||||
fout << "subgraph cluster_" << GetID() << " {" << std::endl;
|
fout << "subgraph cluster_" << GetID() << " {" << std::endl;
|
||||||
fout << "graph[style=\"dashed\" label=\"graph_" << GetID() << "\"];\n";
|
fout << "label=\"graph_" << GetID() <<"\"graph[style=\"dashed\"];\n";
|
||||||
for (auto node : vertices_) {
|
for (auto node : vertices_) {
|
||||||
node->GenerateDOTNode(GetID(), fout, flag);
|
node->GenerateDOTNode(GetID(), fout, flag);
|
||||||
}
|
}
|
||||||
@@ -1371,9 +1371,15 @@ class hipGraphMemcpyNode1D : public hipGraphNode {
|
|||||||
if (flag == hipGraphDebugDotFlagsMemcpyNodeParams || flag == hipGraphDebugDotFlagsVerbose) {
|
if (flag == hipGraphDebugDotFlagsMemcpyNodeParams || flag == hipGraphDebugDotFlagsVerbose) {
|
||||||
char buffer[500];
|
char buffer[500];
|
||||||
sprintf(buffer,
|
sprintf(buffer,
|
||||||
"{\n%s\n| {{ID | node handle | dst | src | count | kind } | {%u | %p | %p | %p | "
|
"{\n%s\n| {{ID | node handle} | {%u | %p}}\n| {kind | %s}\n| {{srcPtr | dstPtr} | "
|
||||||
"%zu | %s}}}",
|
"{pitch "
|
||||||
label_.c_str(), GetID(), this, dst_, src_, count_, memcpyDirection.c_str());
|
"| ptr | xsize | ysize | pitch | ptr | xsize | size} | {%zu | %p | %zu | %zu | %zu | %p "
|
||||||
|
"| %zu "
|
||||||
|
"| %zu}}\n| {{srcPos | {{x | %zu} | {y | %zu} | {z | %zu}}} | {dstPos | {{x | %zu} | {y "
|
||||||
|
"| "
|
||||||
|
"%zu} | {z | %zu}}} | {Extent | {{Width | %zu} | {Height | %zu} | {Depth | %zu}}}}\n}",
|
||||||
|
label_.c_str(), GetID(), this, memcpyDirection.c_str(), (size_t)0,
|
||||||
|
src_, (size_t)0, (size_t)0, (size_t)0, dst_, (size_t)0, (size_t)0, (size_t)0, (size_t)0, (size_t)0, (size_t)0, (size_t)0, (size_t)0, count_, (size_t)1, (size_t)1);
|
||||||
label = buffer;
|
label = buffer;
|
||||||
} else {
|
} else {
|
||||||
label = std::to_string(GetID()) + "\n" + label_ + "\n(" + memcpyDirection + "," +
|
label = std::to_string(GetID()) + "\n" + label_ + "\n(" + memcpyDirection + "," +
|
||||||
|
|||||||
Reference in New Issue
Block a user