SWDEV-240807 - Fix Windows build

These are defined as structs in HIP headers, not as classes.

Change-Id: Ie53424a026424c71fd45db3a60e5be906d472c5d
This commit is contained in:
Vladislav Sytchenko
2021-07-21 20:40:16 -04:00
parent f9732d7f20
commit d3062d3bc2
+3 -3
View File
@@ -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<Node, size_t> nodeInDegree_; // count of in coming edges for every vertex
std::unordered_map<Node, size_t> nodeOutDegree_; // count of outgoing edges for every vertex
std::vector<Node> vertices_;
@@ -315,7 +315,7 @@ class hipGraphHostNode : public hipGraphNode {
}
};
class hipGraphExec {
struct hipGraphExec {
std::vector<std::vector<Node>> parallelLists_;
std::vector<Node> levelOrder_;
std::unordered_map<Node, std::vector<Node>> nodeWaitLists_;