Add performance hints when kernel's argument requires aux translation

Resolves: NEO-2931

Change-Id: I3756265d0d8a774805b0b35088b7477b09b5a7bf
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
This commit is contained in:
Jobczyk, Lukasz
2019-04-25 14:41:38 +02:00
committed by sys_ocldev
parent e0e19c2432
commit 27c52714bb
4 changed files with 39 additions and 2 deletions

View File

@@ -53,6 +53,7 @@ const char *DriverDiagnostics::hintFormat[] = {
"Performance hint: Local workgroup sizes { %u, %u, %u } selected for this workload ( kernel name: %s ) may not be optimal, consider using following local workgroup size: { %u, %u, %u }.", //BAD_LOCAL_WORKGROUP_SIZE
"Performance hint: Kernel %s register pressure is too high, spill fills will be generated, additional surface needs to be allocated of size %u, consider simplifying your kernel.", //REGISTER_PRESSURE_TOO_HIGH
"Performance hint: Kernel %s private memory usage is too high and exhausts register space, additional surface needs to be allocated of size %u, consider reducing amount of private memory used, avoid using private memory arrays.", //PRIVATE_MEMORY_USAGE_TOO_HIGH
"Performance hint: Kernel %s submission requires coherency with CPU; this will impact performance." //KERNEL_REQUIRES_COHERENCY
"Performance hint: Kernel %s submission requires coherency with CPU; this will impact performance.", //KERNEL_REQUIRES_COHERENCY
"Performance hint: Kernel %s requires aux translation on argument [%u] = \"%s\"" //KERNEL_ARGUMENT_AUX_TRANSLATION
};
} // namespace NEO

View File

@@ -46,7 +46,8 @@ enum PerformanceHints {
BAD_LOCAL_WORKGROUP_SIZE,
REGISTER_PRESSURE_TOO_HIGH,
PRIVATE_MEMORY_USAGE_TOO_HIGH,
KERNEL_REQUIRES_COHERENCY
KERNEL_REQUIRES_COHERENCY,
KERNEL_ARGUMENT_AUX_TRANSLATION
};
class DriverDiagnostics {