mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-23 03:01:20 +08:00
Fix Source Level Debugger scenario
- when Program is compiled and linked, kernel debug options must be added when linking - when linking by CompilerInterface, store debugData in Program Change-Id: Ie93a8fa7586681b94307a30c109c103f78ec861a
This commit is contained in:
committed by
sys_ocldev
parent
a39660de92
commit
3d35bf4291
@@ -260,6 +260,10 @@ cl_int CompilerInterface::link(
|
||||
|
||||
program.storeGenBinary(currOut->GetOutput()->GetMemory<char>(), currOut->GetOutput()->GetSizeRaw());
|
||||
program.updateBuildLog(&device, currOut->GetBuildLog()->GetMemory<char>(), currOut->GetBuildLog()->GetSizeRaw());
|
||||
|
||||
if (currOut->GetDebugData()->GetSizeRaw() != 0) {
|
||||
program.storeDebugData(currOut->GetDebugData()->GetMemory<char>(), currOut->GetDebugData()->GetSizeRaw());
|
||||
}
|
||||
}
|
||||
|
||||
return CL_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user