From 8c5c2befeb3664f3aeeaefe801717534d337dd91 Mon Sep 17 00:00:00 2001 From: Sourabh Betigeri Date: Thu, 15 Jul 2021 17:19:19 -0700 Subject: [PATCH] SWDEV-292523 - [vdi]Change in the signature of streamOperations APIs, particularly 'value' arg to unsigned 'value Change-Id: I74b24b2dec911acd5e7a364ea8c050c2ecb1c3b8 --- rocclr/platform/command.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rocclr/platform/command.hpp b/rocclr/platform/command.hpp index 91a412f4e5..3dd726ea56 100644 --- a/rocclr/platform/command.hpp +++ b/rocclr/platform/command.hpp @@ -646,7 +646,7 @@ class FillMemoryCommand : public OneMemoryArgCommand { class StreamOperationCommand : public OneMemoryArgCommand { private: - int64_t value_; // !< Value to Wait on or to Write. + uint64_t value_; // !< Value to Wait on or to Write. uint64_t mask_; // !< Mask to be applied on signal value for Wait operation. unsigned int flags_; // !< Flags defining the Wait condition. size_t offset_; // !< Offset into memory for Write @@ -657,7 +657,7 @@ class StreamOperationCommand : public OneMemoryArgCommand { public: StreamOperationCommand(HostQueue& queue, cl_command_type cmdType, - const EventWaitList& eventWaitList, Memory& memory, const int64_t value, + const EventWaitList& eventWaitList, Memory& memory, const uint64_t value, const uint64_t mask, unsigned int flags, size_t offset, size_t sizeBytes) : OneMemoryArgCommand(queue, cmdType, eventWaitList, memory), value_(value), @@ -675,7 +675,7 @@ class StreamOperationCommand : public OneMemoryArgCommand { virtual void submit(device::VirtualDevice& device) { device.submitStreamOperation(*this); } //! Returns the value - const int64_t value() const { return value_; } + const uint64_t value() const { return value_; } //! Returns the wait mask const uint64_t mask() const { return mask_; } //! Return the wait flags