2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2022-01-19 15:18:21 +00:00
|
|
|
* Copyright (C) 2018-2022 Intel Corporation
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-02-23 15:20:22 +01:00
|
|
|
#include "opencl/test/unit_test/fixtures/device_host_queue_fixture.h"
|
2017-12-21 00:45:38 +01:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
using namespace NEO;
|
2017-12-21 00:45:38 +01:00
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
2018-06-12 21:54:39 +02:00
|
|
|
} // namespace DeviceHostQueue
|