Files
compute-runtime/opencl/source/helpers/cl_preemption_helper.h
Katarzyna Cencelewska ce3bb1327e feature: add method to switch enable/disable mid thread preemption
Resolves: NEO-8089

Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2024-04-15 16:26:52 +02:00

24 lines
492 B
C++

/*
* Copyright (C) 2021-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/command_stream/preemption.h"
namespace NEO {
class Kernel;
class Device;
class Context;
struct MultiDispatchInfo;
class ClPreemptionHelper {
public:
static PreemptionMode taskPreemptionMode(Device &device, const MultiDispatchInfo &multiDispatchInfo);
static void overrideMidThreadPreemptionSupport(Context &context, bool value);
};
} // namespace NEO