Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Cpp Inferencing API to generate the text #156

Merged
merged 26 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
15bb5e1
Added Cpp Inferencing API to generate the text
asmigosw Oct 15, 2024
40a611a
Added Cpp Inferencing API to generate the text
asmigosw Oct 15, 2024
8738fad
Added Cpp Inferencing API to generate the text
asmigosw Oct 15, 2024
68d9617
Added Cpp Inferencing API to generate the text
asmigosw Oct 15, 2024
08a4d57
Added Cpp Inferencing API to generate the text
asmigosw Oct 15, 2024
7eb1455
Added Cpp Inferencing API to generate the text
asmigosw Oct 15, 2024
dad76b3
Added Cpp Inferencing API to generate the text
asmigosw Oct 15, 2024
68c2a9e
Added Cpp Inferencing API to generate the text
asmigosw Oct 15, 2024
e824cae
Added Cpp Inferencing API to generate the text
asmigosw Oct 15, 2024
37822f6
Added Cpp Inferencing API to generate the text
asmigosw Oct 15, 2024
34ce5a9
Added Cpp Inferencing API to generate the text
asmigosw Oct 15, 2024
ca3f5a9
Added Cpp Inferencing API to generate the text
asmigosw Oct 15, 2024
1863f28
Added Cpp Inferencing API to generate the text
asmigosw Oct 15, 2024
b0ba9e5
Added Cpp Inferencing API to generate the text
asmigosw Oct 15, 2024
2c4e874
Added Cpp Inferencing API to generate the text
asmigosw Oct 15, 2024
1ee111e
Added Cpp Inferencing API to generate the text
asmigosw Oct 15, 2024
a41cec7
Added Cpp Inferencing API to generate the text
asmigosw Oct 15, 2024
f66df27
Merge branch 'quic:main' into cpp_inference
asmigosw Nov 7, 2024
9f3f542
Merge branch 'quic:main' into cpp_inference
asmigosw Nov 7, 2024
541d50c
Merge remote-tracking branch 'origin/cpp_inference' into cpp_inference
asmigosw Nov 7, 2024
82434fd
Merge remote-tracking branch 'origin/cpp_inference' into cpp_inference
asmigosw Nov 7, 2024
b26c3d9
Merge remote-tracking branch 'origin/cpp_inference' into cpp_inference
asmigosw Nov 7, 2024
189b6ed
Merge branch 'main' into cpp_inference
asmigosw Nov 12, 2024
483cfec
Added Cpp Inferencing API to generate the text
asmigosw Oct 15, 2024
e5682b0
Added Cpp Inferencing API to generate the text
asmigosw Oct 15, 2024
8c690e1
fixed rasing errors and README
ochougul Nov 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions examples/cpp_execution/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# -----------------------------------------------------------------------------
#
# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
#
# -----------------------------------------------------------------------------

project(InferenceSetIOBuffer)
cmake_minimum_required (VERSION 3.15)

# Find the pybind11 CMake directory using a Python script
execute_process(
COMMAND python -c "import pybind11; print(pybind11.get_cmake_dir())"
OUTPUT_VARIABLE pybind11_DIR
OUTPUT_STRIP_TRAILING_WHITESPACE
)

# Set the CMAKE_PREFIX_PATH to include pybind11
set(CMAKE_PREFIX_PATH ${pybind11_DIR} ${CMAKE_PREFIX_PATH})
set(CMAKE_CXX_STANDARD 17)
find_package(pybind11 REQUIRED)

pybind11_add_module(InferenceSetIOBuffer MODULE InferenceSetIOBuffer.cpp)


include_directories("/opt/qti-aic/dev/inc")
include_directories("examples/cpp_execution")

target_link_libraries(InferenceSetIOBuffer PRIVATE ${PYTHON_LIBRARIES} pybind11::module pthread dl)

target_include_directories(InferenceSetIOBuffer PRIVATE ${PYTHON_INCLUDE_DIRS} ${pybind11_INCLUDE_DIRS})

set_target_properties(
InferenceSetIOBuffer
PROPERTIES
LINK_FLAGS "-Wl,--no-as-needed"
)

set(CMAKE_BUILD_TYPE Debug)

target_compile_options(InferenceSetIOBuffer 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}")
message(STATUS "pybind11_DIR: ${pybind11_DIR}")
Loading
Loading