mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
Revert "L0Debug - Notify cmdQueue create for subdevices"
This reverts commit ebcb3faad2.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
965dbc131d
commit
5199ea257d
@@ -64,31 +64,20 @@ bool DebuggerL0::removeZebinModule(uint32_t moduleHandle) {
|
||||
return true;
|
||||
}
|
||||
|
||||
void DebuggerL0::notifyCommandQueueCreated(NEO::Device *device) {
|
||||
if (this->device->getRootDeviceEnvironment().osInterface.get() != nullptr) {
|
||||
std::unique_lock<std::mutex> commandQueueCountLock(debuggerL0Mutex);
|
||||
|
||||
auto index = device->isSubDevice() ? static_cast<NEO::SubDevice *>(device)->getSubDeviceIndex() : 0;
|
||||
|
||||
if (++commandQueueCount[index] == 1) {
|
||||
auto drm = this->device->getRootDeviceEnvironment().osInterface->getDriverModel()->as<NEO::Drm>();
|
||||
|
||||
CommandQueueNotification notification = {index, this->device->getNumSubDevices()};
|
||||
uuidL0CommandQueueHandle[index] = drm->notifyFirstCommandQueueCreated(¬ification, sizeof(CommandQueueNotification));
|
||||
void DebuggerL0::notifyCommandQueueCreated() {
|
||||
if (device->getRootDeviceEnvironment().osInterface.get() != nullptr) {
|
||||
if (++commandQueueCount == 1) {
|
||||
auto drm = device->getRootDeviceEnvironment().osInterface->getDriverModel()->as<NEO::Drm>();
|
||||
uuidL0CommandQueueHandle = drm->notifyFirstCommandQueueCreated();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void DebuggerL0::notifyCommandQueueDestroyed(NEO::Device *device) {
|
||||
if (this->device->getRootDeviceEnvironment().osInterface.get() != nullptr) {
|
||||
std::unique_lock<std::mutex> commandQueueCountLock(debuggerL0Mutex);
|
||||
|
||||
auto index = device->isSubDevice() ? static_cast<NEO::SubDevice *>(device)->getSubDeviceIndex() : 0;
|
||||
|
||||
if (--commandQueueCount[index] == 0) {
|
||||
auto drm = this->device->getRootDeviceEnvironment().osInterface->getDriverModel()->as<NEO::Drm>();
|
||||
drm->notifyLastCommandQueueDestroyed(uuidL0CommandQueueHandle[index]);
|
||||
uuidL0CommandQueueHandle[index] = 0;
|
||||
void DebuggerL0::notifyCommandQueueDestroyed() {
|
||||
if (device->getRootDeviceEnvironment().osInterface.get() != nullptr) {
|
||||
if (--commandQueueCount == 0) {
|
||||
auto drm = device->getRootDeviceEnvironment().osInterface->getDriverModel()->as<NEO::Drm>();
|
||||
drm->notifyLastCommandQueueDestroyed(uuidL0CommandQueueHandle);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user