mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-27 07:44:16 +08:00
Add function to flush caches
Related-To: NEO-2536 Change-Id: Ifbf7e7a42514dd66eb0914f9d13407287481e123 Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
8a2917dd2c
commit
4eb48e3d06
@@ -18,6 +18,7 @@
|
||||
#include <cstdint>
|
||||
|
||||
namespace NEO {
|
||||
class BarrierCommand;
|
||||
class Buffer;
|
||||
class LinearStream;
|
||||
class Context;
|
||||
@@ -47,14 +48,6 @@ inline bool shouldFlushDC(uint32_t commandType, PrintfHandler *printfHandler) {
|
||||
printfHandler);
|
||||
}
|
||||
|
||||
inline bool isCommandWithoutKernel(uint32_t commandType) {
|
||||
return ((commandType == CL_COMMAND_BARRIER) || (commandType == CL_COMMAND_MARKER) ||
|
||||
(commandType == CL_COMMAND_MIGRATE_MEM_OBJECTS) ||
|
||||
(commandType == CL_COMMAND_SVM_MAP) ||
|
||||
(commandType == CL_COMMAND_SVM_UNMAP) ||
|
||||
(commandType == CL_COMMAND_SVM_FREE));
|
||||
}
|
||||
|
||||
template <>
|
||||
struct OpenCLObjectMapper<_cl_command_queue> {
|
||||
typedef class CommandQueue DerivedType;
|
||||
@@ -306,12 +299,21 @@ class CommandQueue : public BaseObject<_cl_command_queue> {
|
||||
|
||||
MOCKABLE_VIRTUAL void *cpuDataTransferHandler(TransferProperties &transferProperties, EventsRequest &eventsRequest, cl_int &retVal);
|
||||
|
||||
virtual cl_int enqueueResourceBarrier(BarrierCommand *resourceBarrier,
|
||||
cl_uint numEventsInWaitList,
|
||||
const cl_event *eventWaitList,
|
||||
cl_event *event) {
|
||||
return CL_SUCCESS;
|
||||
}
|
||||
|
||||
virtual cl_int finish(bool dcFlush) { return CL_SUCCESS; }
|
||||
|
||||
virtual cl_int flush() { return CL_SUCCESS; }
|
||||
|
||||
MOCKABLE_VIRTUAL void updateFromCompletionStamp(const CompletionStamp &completionStamp);
|
||||
|
||||
virtual bool isCacheFlushCommand(uint32_t commandType) { return false; }
|
||||
|
||||
cl_int getCommandQueueInfo(cl_command_queue_info paramName,
|
||||
size_t paramValueSize, void *paramValue,
|
||||
size_t *paramValueSizeRet);
|
||||
|
||||
Reference in New Issue
Block a user