mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-28 16:48:45 +08:00
Kernel Source Level debugger support 2/n
- adding kernel debug option to build program - program tests refactor - pregenerated debug kernel for ULTs Change-Id: I00152639148fd48c4f709dc7cd9c46392df567c8
This commit is contained in:
committed by
sys_ocldev
parent
507544a999
commit
18eb0b5e64
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
#include "config.h"
|
||||
#include "runtime/compiler_interface/compiler_interface.h"
|
||||
#include "runtime/compiler_interface/compiler_options.h"
|
||||
#include "runtime/os_interface/debug_settings_manager.h"
|
||||
#include "runtime/platform/platform.h"
|
||||
#include "runtime/helpers/validators.h"
|
||||
@@ -91,6 +92,10 @@ cl_int Program::build(
|
||||
break;
|
||||
}
|
||||
|
||||
if (isKernelDebugEnabled()) {
|
||||
internalOptions.append(CompilerOptions::debugKernelEnable);
|
||||
}
|
||||
|
||||
internalOptions.append(platform()->peekCompilerExtensions());
|
||||
inputArgs.pInput = (char *)(sourceCode.c_str());
|
||||
inputArgs.InputSize = (uint32_t)sourceCode.size();
|
||||
|
||||
Reference in New Issue
Block a user