Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Commit

Permalink
SWDEV-394243 - Invalidate Barrier Value AQL header
Browse files Browse the repository at this point in the history
Change-Id: Id8e04ffe44da58641361468957d397af128443bb
  • Loading branch information
saleelk authored and mangupta committed Apr 27, 2023
1 parent e047204 commit d7491f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion device/rocm/rocvirtual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,6 @@ void VirtualGPU::dispatchBarrierValuePacket(uint16_t packetHeader, bool resolveD
hsa_signal_t signal, hsa_signal_value_t value,
hsa_signal_value_t mask, hsa_signal_condition32_t cond,
bool skipTs, hsa_signal_t completionSignal) {
hsa_amd_barrier_value_packet_t barrier_value_packet_ = {0};
uint16_t rest = HSA_AMD_PACKET_TYPE_BARRIER_VALUE;
const uint32_t queueSize = gpu_queue_->size;
const uint32_t queueMask = queueSize - 1;
Expand Down Expand Up @@ -1274,6 +1273,7 @@ bool VirtualGPU::create() {
// Initialize barrier and barrier value packets
memset(&barrier_packet_, 0, sizeof(barrier_packet_));
barrier_packet_.header = kInvalidAql;
barrier_value_packet_.header.header = kInvalidAql;

// Create a object of PrintfDbg
printfdbg_ = new PrintfDbg(roc_device_);
Expand Down
1 change: 1 addition & 0 deletions device/rocm/rocvirtual.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ class VirtualGPU : public device::VirtualDevice {
hsa_agent_t gpu_device_; //!< Physical device
hsa_queue_t* gpu_queue_; //!< Queue associated with a gpu
hsa_barrier_and_packet_t barrier_packet_;
hsa_amd_barrier_value_packet_t barrier_value_packet_;

uint32_t dispatch_id_; //!< This variable must be updated atomically.
Device& roc_device_; //!< roc device object
Expand Down

0 comments on commit d7491f0

Please sign in to comment.