Implement zeCommandListAppendLaunchCooperativeKernel

Resolves: NEO-4725


Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2021-03-19 23:14:09 +00:00
committed by Compute-Runtime-Automation
parent 3dc3ad36f8
commit 8d55bfe21d
26 changed files with 216 additions and 82 deletions

View File

@@ -15,7 +15,6 @@
#include "shared/source/helpers/string.h"
#include "shared/source/os_interface/driver_info.h"
#include "shared/source/os_interface/os_interface.h"
#include "shared/source/program/sync_buffer_handler.h"
#include "shared/source/source_level_debugger/source_level_debugger.h"
#include "opencl/source/helpers/cl_hw_helper.h"
@@ -68,7 +67,6 @@ ClDevice::~ClDevice() {
getSourceLevelDebugger()->notifyDeviceDestruction();
}
syncBufferHandler.reset();
for (auto &subDevice : subDevices) {
subDevice.reset();
}
@@ -98,14 +96,6 @@ bool ClDevice::isOcl21Conformant() const {
hwInfo.capabilityTable.supportsPipes && hwInfo.capabilityTable.supportsIndependentForwardProgress);
}
void ClDevice::allocateSyncBufferHandler() {
TakeOwnershipWrapper<ClDevice> lock(*this);
if (syncBufferHandler.get() == nullptr) {
syncBufferHandler = std::make_unique<SyncBufferHandler>(this->getDevice());
UNRECOVERABLE_IF(syncBufferHandler.get() == nullptr);
}
}
void ClDevice::retainApi() {
auto parentDeviceId = deviceInfo.parentDevice;
if (parentDeviceId) {

View File

@@ -31,7 +31,6 @@ class MemoryManager;
class PerformanceCounters;
class Platform;
class SourceLevelDebugger;
class SyncBufferHandler;
struct DeviceInfo;
struct EngineControl;
struct HardwareCapabilities;
@@ -77,7 +76,6 @@ class ClDevice : public BaseObject<_cl_device_id> {
double getPlatformHostTimerResolution() const;
bool isSimulation() const;
GFXCORE_FAMILY getRenderCoreFamily() const;
void allocateSyncBufferHandler();
PerformanceCounters *getPerformanceCounters();
PreemptionMode getPreemptionMode() const;
bool isDebuggerActive() const;
@@ -119,7 +117,6 @@ class ClDevice : public BaseObject<_cl_device_id> {
ClDevice *getDeviceById(uint32_t deviceId);
const std::string &peekCompilerExtensions() const;
const std::string &peekCompilerExtensionsWithFeatures() const;
std::unique_ptr<SyncBufferHandler> syncBufferHandler;
DeviceBitfield getDeviceBitfield() const;
bool isDeviceEnqueueSupported() const;
bool arePipesSupported() const;