mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 05:56:36 +08:00
refactor: remove pre-gen9 code
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a65d4da88b
commit
756c540275
@@ -616,9 +616,6 @@ cl_command_queue CL_API_CALL clCreateCommandQueue(cl_context context,
|
||||
pContext->providePerformanceHint(CL_CONTEXT_DIAGNOSTICS_LEVEL_NEUTRAL_INTEL, DRIVER_CALLS_INTERNAL_CL_FLUSH);
|
||||
if (castToObjectOrAbort<CommandQueue>(commandQueue)->isProfilingEnabled()) {
|
||||
pContext->providePerformanceHint(CL_CONTEXT_DIAGNOSTICS_LEVEL_NEUTRAL_INTEL, PROFILING_ENABLED);
|
||||
if (pDevice->getDeviceInfo().preemptionSupported && pDevice->getHardwareInfo().platform.eProductFamily < IGFX_SKYLAKE) {
|
||||
pContext->providePerformanceHint(CL_CONTEXT_DIAGNOSTICS_LEVEL_NEUTRAL_INTEL, PROFILING_ENABLED_WITH_DISABLED_PREEMPTION);
|
||||
}
|
||||
}
|
||||
}
|
||||
} while (false);
|
||||
@@ -5617,9 +5614,6 @@ cl_command_queue CL_API_CALL clCreateCommandQueueWithProperties(cl_context conte
|
||||
pContext->providePerformanceHint(CL_CONTEXT_DIAGNOSTICS_LEVEL_NEUTRAL_INTEL, DRIVER_CALLS_INTERNAL_CL_FLUSH);
|
||||
if (castToObjectOrAbort<CommandQueue>(commandQueue)->isProfilingEnabled()) {
|
||||
pContext->providePerformanceHint(CL_CONTEXT_DIAGNOSTICS_LEVEL_NEUTRAL_INTEL, PROFILING_ENABLED);
|
||||
if (pDevice->getDeviceInfo().preemptionSupported && pDevice->getHardwareInfo().platform.eProductFamily < IGFX_SKYLAKE) {
|
||||
pContext->providePerformanceHint(CL_CONTEXT_DIAGNOSTICS_LEVEL_NEUTRAL_INTEL, PROFILING_ENABLED_WITH_DISABLED_PREEMPTION);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2023 Intel Corporation
|
||||
* Copyright (C) 2018-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -26,7 +26,6 @@ const char *const DriverDiagnostics::hintFormat[] = {
|
||||
"Performance hint: clCreateImage with pointer %p meets alignment restrictions and image will share the same physical memory with CPU.", // CL_IMAGE_MEETS_ALIGNMENT_RESTRICTIONS
|
||||
"Performance hint: Driver calls internal clFlush on the command queue each time 1 command is enqueued.", // DRIVER_CALLS_INTERNAL_CL_FLUSH
|
||||
"Performance hint: Profiling adds overhead on all enqueue commands with events.", // PROFILING_ENABLED
|
||||
"Performance hint: Profiled kernels will be executed with disabled preemption.", // PROFILING_ENABLED_WITH_DISABLED_PREEMPTION
|
||||
"Performance hint: Subbuffer created from buffer %p shares the same memory with buffer.", // SUBBUFFER_SHARES_MEMORY
|
||||
"Performance hint: clSVMAlloc with pointer %p and size %u meets alignment restrictions.", // CL_SVM_ALLOC_MEETS_ALIGNMENT_RESTRICTIONS
|
||||
"Performance hint: clEnqueueReadBuffer call on a buffer %p with pointer %p will require driver to copy the data.Consider using clEnqueueMapBuffer with buffer that shares the same physical memory with CPU.", // CL_ENQUEUE_READ_BUFFER_REQUIRES_COPY_DATA
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
* Copyright (C) 2018-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -17,7 +17,6 @@ enum PerformanceHints {
|
||||
CL_IMAGE_MEETS_ALIGNMENT_RESTRICTIONS,
|
||||
DRIVER_CALLS_INTERNAL_CL_FLUSH,
|
||||
PROFILING_ENABLED,
|
||||
PROFILING_ENABLED_WITH_DISABLED_PREEMPTION,
|
||||
SUBBUFFER_SHARES_MEMORY,
|
||||
CL_SVM_ALLOC_MEETS_ALIGNMENT_RESTRICTIONS,
|
||||
CL_ENQUEUE_READ_BUFFER_REQUIRES_COPY_DATA,
|
||||
|
||||
Reference in New Issue
Block a user