From d3062d3bc2f66773e9ff40d7848ec16bca84f8b5 Mon Sep 17 00:00:00 2001 From: Vladislav Sytchenko Date: Wed, 21 Jul 2021 20:40:16 -0400 Subject: [PATCH] SWDEV-240807 - Fix Windows build These are defined as structs in HIP headers, not as classes. Change-Id: Ie53424a026424c71fd45db3a60e5be906d472c5d --- hipamd/src/hip_graph_internal.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hipamd/src/hip_graph_internal.hpp b/hipamd/src/hip_graph_internal.hpp index 14629b75e9..fc187c20fd 100644 --- a/hipamd/src/hip_graph_internal.hpp +++ b/hipamd/src/hip_graph_internal.hpp @@ -33,7 +33,7 @@ typedef hipGraphNode* Node; -class hipGraphNode { +struct hipGraphNode { protected: uint32_t level_; hipGraphNodeType type_; @@ -58,7 +58,7 @@ class hipGraphNode { void SetLevel(uint32_t level) { level_ = level; } }; -class ihipGraph { +struct ihipGraph { std::unordered_map nodeInDegree_; // count of in coming edges for every vertex std::unordered_map nodeOutDegree_; // count of outgoing edges for every vertex std::vector vertices_; @@ -315,7 +315,7 @@ class hipGraphHostNode : public hipGraphNode { } }; -class hipGraphExec { +struct hipGraphExec { std::vector> parallelLists_; std::vector levelOrder_; std::unordered_map> nodeWaitLists_;