Skip to content

Commit 027afc7

Browse files
authored
[SYCL][Graph] Fix unitialized member of dynamic_parameter_impl (#17773)
Initializes MID like in all the other constructors.
1 parent 80fd665 commit 027afc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/source/detail/graph_impl.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,8 @@ class exec_graph_impl {
14861486
class dynamic_parameter_impl {
14871487
public:
14881488
dynamic_parameter_impl(std::shared_ptr<graph_impl> GraphImpl)
1489-
: MGraph(GraphImpl) {}
1489+
: MGraph(GraphImpl),
1490+
MID(NextAvailableID.fetch_add(1, std::memory_order_relaxed)) {}
14901491

14911492
dynamic_parameter_impl(std::shared_ptr<graph_impl> GraphImpl,
14921493
size_t ParamSize, const void *Data)

0 commit comments

Comments
 (0)