Skip to content

Commit

Permalink
Added Cpp Inferencing API to generate the text
Browse files Browse the repository at this point in the history
Signed-off-by: Asmita Goswami <quic_asmigosw@quicinc.com>
  • Loading branch information
asmigosw committed Oct 15, 2024
1 parent 08ca83c commit 99158e7
Show file tree
Hide file tree
Showing 4 changed files with 873 additions and 0 deletions.
46 changes: 46 additions & 0 deletions examples/cpp_execution/CMakeLists.txt
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}")
Loading

0 comments on commit 99158e7

Please sign in to comment.