Skip to content

Commit 70f3342

Browse files
refactor: remove vme specific code
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
1 parent 794b21a commit 70f3342

37 files changed

+13
-758
lines changed

opencl/source/cl_device/cl_device_caps.cpp

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,6 @@ void ClDevice::initializeCaps() {
192192
if (debugManager.flags.EnablePackedYuv.get() && hwInfo.capabilityTable.supportsImages) {
193193
deviceInfo.packedYuvExtension = true;
194194
}
195-
auto supportsVme = hwInfo.capabilityTable.supportsVme;
196-
if (debugManager.flags.EnableIntelVme.get() != -1) {
197-
supportsVme = !!debugManager.flags.EnableIntelVme.get();
198-
}
199-
200-
if (supportsVme) {
201-
deviceInfo.vmeExtension = true;
202-
}
203195

204196
auto sharingAllowed = (getNumGenericSubDevices() <= 1u) && productHelper.isSharingWith3dOrMediaAllowed();
205197
if (sharingAllowed) {
@@ -222,30 +214,7 @@ void ClDevice::initializeCaps() {
222214
}
223215

224216
deviceInfo.deviceExtensions = deviceExtensions.c_str();
225-
226-
std::vector<std::string> exposedBuiltinKernelsVector;
227-
if (supportsVme) {
228-
exposedBuiltinKernelsVector.push_back("block_motion_estimate_intel");
229-
}
230-
auto supportsAdvancedVme = hwInfo.capabilityTable.supportsVme;
231-
232-
if (debugManager.flags.EnableIntelAdvancedVme.get() != -1) {
233-
supportsAdvancedVme = !!debugManager.flags.EnableIntelAdvancedVme.get();
234-
}
235-
if (supportsAdvancedVme) {
236-
exposedBuiltinKernelsVector.push_back("block_advanced_motion_estimate_check_intel");
237-
exposedBuiltinKernelsVector.push_back("block_advanced_motion_estimate_bidirectional_check_intel");
238-
}
239-
for (auto &builtInKernel : exposedBuiltinKernelsVector) {
240-
exposedBuiltinKernels.append(builtInKernel);
241-
exposedBuiltinKernels.append(";");
242-
243-
cl_name_version kernelNameVersion;
244-
kernelNameVersion.version = CL_MAKE_VERSION(1, 0, 0);
245-
strcpy_s(kernelNameVersion.name, CL_NAME_VERSION_MAX_NAME_SIZE, builtInKernel.c_str());
246-
deviceInfo.builtInKernelsWithVersion.push_back(kernelNameVersion);
247-
}
248-
deviceInfo.builtInKernels = exposedBuiltinKernels.c_str();
217+
deviceInfo.builtInKernels = "";
249218

250219
deviceInfo.deviceType = CL_DEVICE_TYPE_GPU;
251220
deviceInfo.endianLittle = 1;
@@ -387,11 +356,6 @@ void ClDevice::initializeCaps() {
387356
deviceInfo.planarYuvMaxWidth = 16384;
388357
deviceInfo.planarYuvMaxHeight = gfxCoreHelper.getPlanarYuvMaxHeight();
389358

390-
deviceInfo.vmeAvcSupportsTextureSampler = hwInfo.capabilityTable.ftrSupportsVmeAvcTextureSampler;
391-
if (hwInfo.capabilityTable.supportsVme) {
392-
deviceInfo.vmeAvcVersion = CL_AVC_ME_VERSION_1_INTEL;
393-
deviceInfo.vmeVersion = CL_ME_VERSION_ADVANCED_VER_2_INTEL;
394-
}
395359
deviceInfo.platformHostTimerResolution = getPlatformHostTimerResolution();
396360

397361
deviceInfo.internalDriverVersion = CL_DEVICE_DRIVER_VERSION_INTEL_NEO1;

opencl/test/unit_test/api/cl_get_program_info_tests.inl

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2018-2024 Intel Corporation
2+
* Copyright (C) 2018-2025 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -368,44 +368,6 @@ TEST(clGetProgramInfoTest, GivenMultiDeviceProgramCreatedWithILWhenGettingDevice
368368
EXPECT_EQ(CL_SUCCESS, retVal);
369369
}
370370

371-
TEST(clGetProgramInfoTest, GivenMultiDeviceProgramCreatedWithBuiltInKernelsWhenGettingDevicesThenCorrectDevicesAreReturned) {
372-
if (!defaultHwInfo->capabilityTable.supportsVme) {
373-
GTEST_SKIP();
374-
}
375-
MockUnrestrictiveContextMultiGPU context;
376-
377-
auto numDevicesForProgram = 2u;
378-
cl_device_id devicesForProgram[] = {context.getDevice(1), context.getDevice(3)};
379-
380-
overwriteBuiltInBinaryName("media_kernels_frontend");
381-
382-
const char *kernelNamesString = {
383-
"block_advanced_motion_estimate_bidirectional_check_intel;"
384-
"block_motion_estimate_intel;"
385-
"block_advanced_motion_estimate_check_intel;"};
386-
387-
cl_program pProgram = nullptr;
388-
389-
cl_int retVal = CL_INVALID_PROGRAM;
390-
391-
pProgram = clCreateProgramWithBuiltInKernels(
392-
&context,
393-
numDevicesForProgram,
394-
devicesForProgram,
395-
kernelNamesString,
396-
&retVal);
397-
398-
EXPECT_NE(nullptr, pProgram);
399-
EXPECT_EQ(CL_SUCCESS, retVal);
400-
401-
restoreBuiltInBinaryName();
402-
403-
verifyDevices(pProgram, numDevicesForProgram, devicesForProgram);
404-
405-
retVal = clReleaseProgram(pProgram);
406-
EXPECT_EQ(CL_SUCCESS, retVal);
407-
}
408-
409371
TEST(clGetProgramInfoTest, GivenMultiDeviceBuiltInProgramCreatedWithGenBinaryWhenGettingDevicesThenCorrectDevicesAreReturned) {
410372
MockUnrestrictiveContextMultiGPU context;
411373

opencl/test/unit_test/command_queue/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2018-2022 Intel Corporation
2+
# Copyright (C) 2018-2025 Intel Corporation
33
#
44
# SPDX-License-Identifier: MIT
55
#
@@ -52,7 +52,6 @@ set(IGDRCL_SRCS_tests_command_queue
5252
${CMAKE_CURRENT_SOURCE_DIR}/enqueue_map_buffer_tests.cpp
5353
${CMAKE_CURRENT_SOURCE_DIR}/enqueue_map_image_tests.cpp
5454
${CMAKE_CURRENT_SOURCE_DIR}/enqueue_marker_tests.cpp
55-
${CMAKE_CURRENT_SOURCE_DIR}/enqueue_media_kernel.cpp
5655
${CMAKE_CURRENT_SOURCE_DIR}/enqueue_migrate_mem_objects_tests.cpp
5756
${CMAKE_CURRENT_SOURCE_DIR}/enqueue_read_buffer_event_tests.cpp
5857
${CMAKE_CURRENT_SOURCE_DIR}/enqueue_read_buffer_fixture.h

opencl/test/unit_test/command_queue/enqueue_media_kernel.cpp

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)