Skip to content

Commit

Permalink
[onert] Introduce workspace setting API (Samsung#13031)
Browse files Browse the repository at this point in the history
This commit introduces workspace setting API.
It can be used in runtime for internal temporary, cache file management, etc.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh authored May 22, 2024
1 parent 65749cb commit c3bd1e2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions runtime/onert/api/nnfw/include/nnfw.h
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,18 @@ NNFW_STATUS nnfw_set_op_backend(nnfw_session *session, const char *op, const cha
*/
NNFW_STATUS nnfw_query_info_u32(nnfw_session *session, NNFW_INFO_ID id, uint32_t *val);

/**
* @brief Set runtime's workspace directory
*
* <p>This function sets the directory to be used as a workspace.
* System should should allow read and write access to the directory for the runtime.</p>
*
* @param[in] session session to be queried on.
* @param[in] dir workspace directory path
* @return @c NNFW_STATUS_NO_ERROR if successful
*/
NNFW_STATUS nnfw_set_workspace(nnfw_session *session, const char *dir);

#ifdef __cplusplus
}
#endif
Expand Down

0 comments on commit c3bd1e2

Please sign in to comment.