mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00
Remove device enqueue part 11
- remove templates from queue functions Related-To: NEO-6559 Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
f1a8bb821a
commit
3d9e1ea3a5
@ -13,8 +13,6 @@ set(IGDRCL_SRCS_tests_fixtures
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/context_fixture.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/d3d_test_fixture.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/dispatch_flags_fixture.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/device_host_queue_fixture.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/device_host_queue_fixture.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/device_info_fixture.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/device_instrumentation_fixture.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/device_instrumentation_fixture.h
|
||||
|
@ -1,35 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "opencl/test/unit_test/fixtures/device_host_queue_fixture.h"
|
||||
|
||||
using namespace NEO;
|
||||
|
||||
namespace DeviceHostQueue {
|
||||
cl_queue_properties deviceQueueProperties::minimumProperties[5] = {
|
||||
CL_QUEUE_PROPERTIES,
|
||||
CL_QUEUE_ON_DEVICE | CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE,
|
||||
0, 0, 0};
|
||||
|
||||
cl_queue_properties deviceQueueProperties::minimumPropertiesWithProfiling[5] = {
|
||||
CL_QUEUE_PROPERTIES,
|
||||
CL_QUEUE_ON_DEVICE | CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE,
|
||||
0, 0, 0};
|
||||
|
||||
cl_queue_properties deviceQueueProperties::noProperties[5] = {0};
|
||||
|
||||
cl_queue_properties deviceQueueProperties::allProperties[5] = {
|
||||
CL_QUEUE_PROPERTIES, CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE | CL_QUEUE_ON_DEVICE,
|
||||
CL_QUEUE_SIZE, 128 * 1024,
|
||||
0};
|
||||
|
||||
template <>
|
||||
cl_command_queue DeviceHostQueueFixture<CommandQueue>::create(cl_context ctx, cl_device_id device, cl_int &retVal,
|
||||
cl_queue_properties properties[5]) {
|
||||
return clCreateCommandQueueWithProperties(ctx, device, properties, &retVal);
|
||||
}
|
||||
} // namespace DeviceHostQueue
|
@ -1,52 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "shared/test/common/test_macros/test.h"
|
||||
|
||||
#include "opencl/source/cl_device/cl_device.h"
|
||||
#include "opencl/source/command_queue/command_queue.h"
|
||||
#include "opencl/test/unit_test/api/cl_api_tests.h"
|
||||
#include "opencl/test/unit_test/test_macros/test_checks_ocl.h"
|
||||
|
||||
using namespace NEO;
|
||||
|
||||
namespace DeviceHostQueue {
|
||||
struct deviceQueueProperties {
|
||||
static cl_queue_properties minimumProperties[5];
|
||||
static cl_queue_properties minimumPropertiesWithProfiling[5];
|
||||
static cl_queue_properties noProperties[5];
|
||||
static cl_queue_properties allProperties[5];
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
class DeviceHostQueueFixture : public ApiFixture<>,
|
||||
public ::testing::Test {
|
||||
public:
|
||||
void SetUp() override {
|
||||
ApiFixture::SetUp();
|
||||
}
|
||||
void TearDown() override {
|
||||
ApiFixture::TearDown();
|
||||
}
|
||||
|
||||
cl_command_queue createClQueue(cl_queue_properties properties[5] = deviceQueueProperties::noProperties) {
|
||||
return create(pContext, testedClDevice, retVal, properties);
|
||||
}
|
||||
|
||||
T *createQueueObject(cl_queue_properties properties[5] = deviceQueueProperties::noProperties) {
|
||||
using BaseType = typename T::BaseType;
|
||||
cl_context context = (cl_context)(pContext);
|
||||
auto clQueue = create(context, testedClDevice, retVal, properties);
|
||||
return castToObject<T>(static_cast<BaseType *>(clQueue));
|
||||
}
|
||||
|
||||
cl_command_queue create(cl_context ctx, cl_device_id device, cl_int &retVal,
|
||||
cl_queue_properties properties[5] = deviceQueueProperties::noProperties);
|
||||
};
|
||||
|
||||
} // namespace DeviceHostQueue
|
Reference in New Issue
Block a user