-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Cpp Inferencing API to generate the text
Signed-off-by: Asmita Goswami <quic_asmigosw@quicinc.com>
- Loading branch information
Showing
4 changed files
with
873 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# ----------------------------------------------------------------------------- | ||
# | ||
# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# | ||
# ----------------------------------------------------------------------------- | ||
|
||
project(InferenceSetIOBufferExample) | ||
cmake_minimum_required (VERSION 3.15) | ||
set(CMAKE_CXX_STANDARD 17) | ||
|
||
find_package(pybind11 REQUIRED) | ||
|
||
pybind11_add_module(InferenceSetIOBufferExample MODULE InferenceSetIOBufferExample.cpp) | ||
|
||
|
||
include_directories("/opt/qti-aic/dev/inc") | ||
include_directories("examples/cpp_execution") | ||
|
||
target_link_libraries(InferenceSetIOBufferExample PRIVATE ${PYTHON_LIBRARIES} pybind11::module pthread dl) | ||
|
||
target_include_directories(InferenceSetIOBufferExample PRIVATE ${PYTHON_INCLUDE_DIRS} ${pybind11_INCLUDE_DIRS}) | ||
|
||
set_target_properties( | ||
InferenceSetIOBufferExample | ||
PROPERTIES | ||
LINK_FLAGS "-Wl,--no-as-needed" | ||
CFLAGS "-g -Wall -Wextra" | ||
) | ||
|
||
set(CMAKE_BUILD_TYPE Debug) | ||
|
||
target_compile_options(InferenceSetIOBufferExample PRIVATE | ||
-fstack-protector-all | ||
-fstack-protector-all | ||
-Werror | ||
-Wall | ||
-Wextra | ||
-Wunused-variable | ||
-Wunused-parameter | ||
-Wnon-virtual-dtor | ||
-Wno-missing-field-initializers) | ||
|
||
#Print paths for debugging | ||
message(STATUS "Python Include Dirs: ${PYTHON_INCLUDE_DIRS}") | ||
message(STATUS "Python Include Dirs: ${PYTHON_LIBRARIES}") |
Oops, something went wrong.