mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
Refactor source level debugger notification in OCL. [1/n]
Refactor source level debugger notification in OCL path - in build() cl_program method. It fixes confusing debug data creation (mixed legacy/zebin path) and thus incorrect kernel notification about debug data. Signed-off-by: Kacper Nowak <kacper.nowak@intel.com> Related-To: NEO-6644
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
454888a045
commit
741ee49c9a
@@ -32,7 +32,6 @@ class MockProgram : public Program {
|
||||
using Program::areSpecializationConstantsInitialized;
|
||||
using Program::buildInfos;
|
||||
using Program::context;
|
||||
using Program::createDebugZebin;
|
||||
using Program::createdFrom;
|
||||
using Program::createProgramFromBinary;
|
||||
using Program::deviceBuildInfos;
|
||||
@@ -42,6 +41,7 @@ class MockProgram : public Program {
|
||||
using Program::irBinary;
|
||||
using Program::irBinarySize;
|
||||
using Program::isBuiltIn;
|
||||
using Program::isCreatedFromBinary;
|
||||
using Program::isSpirV;
|
||||
using Program::kernelDebugEnabled;
|
||||
using Program::linkBinary;
|
||||
@@ -179,12 +179,24 @@ class MockProgram : public Program {
|
||||
return kernelInfos;
|
||||
}
|
||||
|
||||
void processDebugData(uint32_t rootDeviceIndex) override {
|
||||
Program::processDebugData(rootDeviceIndex);
|
||||
wasProcessDebugDataCalled = true;
|
||||
}
|
||||
|
||||
void createDebugZebin(uint32_t rootDeviceIndex) override {
|
||||
Program::createDebugZebin(rootDeviceIndex);
|
||||
wasCreateDebugZebinCalled = true;
|
||||
}
|
||||
|
||||
std::map<uint32_t, int> processGenBinaryCalledPerRootDevice;
|
||||
std::map<uint32_t, int> replaceDeviceBinaryCalledPerRootDevice;
|
||||
static int getInternalOptionsCalled;
|
||||
bool contextSet = false;
|
||||
int isFlagOptionOverride = -1;
|
||||
int isOptionValueValidOverride = -1;
|
||||
bool wasProcessDebugDataCalled = false;
|
||||
bool wasCreateDebugZebinCalled = false;
|
||||
};
|
||||
|
||||
class MockProgramAppendKernelDebugOptions : public Program {
|
||||
|
||||
Reference in New Issue
Block a user