|
|
@@ -1,18 +1,18 @@ |
|
|
|
/** |
|
|
|
* Copyright 2019-2020 Huawei Technologies Co., Ltd |
|
|
|
* |
|
|
|
* Copyright 2020 Huawei Technologies Co., Ltd |
|
|
|
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* You may obtain a copy of the License at |
|
|
|
* |
|
|
|
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0 |
|
|
|
* |
|
|
|
|
|
|
|
* Unless required by applicable law or agreed to in writing, software |
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, |
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
|
|
* See the License for the specific language governing permissions and |
|
|
|
* limitations under the License. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
#ifndef __CCE_RUNTIME_MODEL_H__ |
|
|
|
#define __CCE_RUNTIME_MODEL_H__ |
|
|
@@ -49,6 +49,7 @@ typedef enum tagModelTaskType { |
|
|
|
RT_MODEL_TASK_MEMCPY_ADDR_ASYNC, |
|
|
|
RT_MODEL_TASK_STREAM_LABEL_SWITCH_BY_INDEX, |
|
|
|
RT_MODEL_TASK_STREAM_LABEL_GOTO, |
|
|
|
RT_MODEL_TASK_MODEL_EXIT, |
|
|
|
} rtModelTaskType_t; |
|
|
|
|
|
|
|
typedef enum tagModelStreamType { |
|
|
@@ -224,6 +225,13 @@ typedef struct tagrtModelEndGraphTaskInfo { |
|
|
|
uint32_t reserved[8]; |
|
|
|
} rtModelEndGraphTaskInfo_t; |
|
|
|
|
|
|
|
typedef struct tagrtModelExitInfo { |
|
|
|
uint32_t modelId; |
|
|
|
uint32_t streamId; |
|
|
|
uint32_t reserved[8]; |
|
|
|
} rtModelExitTaskInfo_t; |
|
|
|
|
|
|
|
|
|
|
|
typedef struct tagrtStreamLabelSwitchByIndexTask_t { |
|
|
|
uint64_t indexPtr; |
|
|
|
uint64_t labelInfoPtr; |
|
|
@@ -256,6 +264,7 @@ typedef struct tagTaskInfo { |
|
|
|
rtRdmaSendTaskInfo_t rdmaSendTask; |
|
|
|
rtRdmaDbSendTaskInfo_t rdmaDbSendTask; |
|
|
|
rtModelEndGraphTaskInfo_t modelEndGraphTask; |
|
|
|
rtModelExitTaskInfo_t modelExitTask; |
|
|
|
rtStreamSwitchNTaskInfo_t streamSwitchNTask; |
|
|
|
rtStreamLabelSwitchByIndexTask_t streamLabelSwitchIndexTask; |
|
|
|
rtStreamLabelGotoTask_t streamLabelGotoTask; |
|
|
@@ -391,6 +400,16 @@ RTS_API rtError_t rtModelAbort(rtModel_t model); |
|
|
|
|
|
|
|
/** |
|
|
|
* @ingroup rt_model |
|
|
|
* @brief end graph task to model default stream |
|
|
|
* @param [in] model model to execute |
|
|
|
* @param [in] end graph stream |
|
|
|
* @return RT_ERROR_NONE for ok |
|
|
|
* @return RT_ERROR_INVALID_VALUE for error input |
|
|
|
*/ |
|
|
|
RTS_API rtError_t rtModelExit(rtModel_t model, rtStream_t stream); |
|
|
|
|
|
|
|
/** |
|
|
|
* @ingroup rt_model |
|
|
|
* @brief bind queue |
|
|
|
* @param [in] model model to bind |
|
|
|
* @param [in] queueId queueId to bind |
|
|
|