mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Use dedicated using type for TaskCount
Related-To: NEO-7155 Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
3f962bf3e8
commit
4b42b066f8
@ -169,7 +169,7 @@ void gtpinNotifyPreFlushTask(void *pCmdQueue) {
|
||||
}
|
||||
}
|
||||
|
||||
void gtpinNotifyFlushTask(uint32_t flushedTaskCount) {
|
||||
void gtpinNotifyFlushTask(TaskCountType flushedTaskCount) {
|
||||
if (isGTPinInitialized) {
|
||||
std::unique_lock<GTPinLockType> lock{kernelExecQueueLock};
|
||||
size_t numElems = kernelExecQueue.size();
|
||||
@ -185,7 +185,7 @@ void gtpinNotifyFlushTask(uint32_t flushedTaskCount) {
|
||||
}
|
||||
}
|
||||
|
||||
void gtpinNotifyTaskCompletion(uint32_t completedTaskCount) {
|
||||
void gtpinNotifyTaskCompletion(TaskCountType completedTaskCount) {
|
||||
std::unique_lock<GTPinLockType> lock{kernelExecQueueLock};
|
||||
size_t numElems = kernelExecQueue.size();
|
||||
for (size_t n = 0; n < numElems;) {
|
||||
|
@ -20,7 +20,7 @@ struct GTPinKernelExec {
|
||||
cl_mem gtpinResource;
|
||||
CommandQueue *pCommandQueue;
|
||||
gtpin::command_buffer_handle_t commandBuffer;
|
||||
uint32_t taskCount;
|
||||
TaskCountType taskCount;
|
||||
bool isTaskCountValid;
|
||||
bool isResourceResident;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@ -7,6 +7,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "shared/source/command_stream/task_count_helper.h"
|
||||
|
||||
#include "CL/cl.h"
|
||||
|
||||
#include <cstdint>
|
||||
@ -19,8 +21,8 @@ void gtpinNotifyContextDestroy(cl_context context);
|
||||
void gtpinNotifyKernelCreate(cl_kernel kernel);
|
||||
void gtpinNotifyKernelSubmit(cl_kernel kernel, void *pCmdQueue);
|
||||
void gtpinNotifyPreFlushTask(void *pCmdQueue);
|
||||
void gtpinNotifyFlushTask(uint32_t flushedTaskCount);
|
||||
void gtpinNotifyTaskCompletion(uint32_t completedTaskCount);
|
||||
void gtpinNotifyFlushTask(TaskCountType flushedTaskCount);
|
||||
void gtpinNotifyTaskCompletion(TaskCountType completedTaskCount);
|
||||
void gtpinNotifyMakeResident(void *pKernel, void *pCommandStreamReceiver);
|
||||
void gtpinNotifyUpdateResidencyList(void *pKernel, void *pResidencyVector);
|
||||
void gtpinNotifyPlatformShutdown();
|
||||
|
Reference in New Issue
Block a user