Skip to content

Add another c++ simple example (Updated) #90

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

Merged
merged 3 commits into from
Mar 14, 2022
Merged

Conversation

chilo-ms
Copy link
Contributor

This PR is an update for the previous PR #87, due to some changes from Azure Pipelines, therefore this example folder needs to be updated as well.

@chilo-ms chilo-ms requested review from snnn and jywu-msft March 12, 2022 01:05

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

include_directories(
${PROJECT_SOURCE_DIR}/../../include/onnxruntime/core/session/
${PROJECT_SOURCE_DIR}/../../include/onnxruntime/core/providers/tensorrt/
$ENV{ONNXRUNTIME_ROOTDIR}/include/onnxruntime/core/session/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be a cmake option instead of environment variable. For example, onnxruntime_CUDA_HOME is such a thing.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usage:

cmake .. -A x64 -T host=x64  -DONNXRUNTIME_ROOTDIR=c:\dev\ort_install

Copy link
Member

@snnn snnn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@chilo-ms chilo-ms merged commit 63d461a into main Mar 14, 2022
@chilo-ms chilo-ms deleted the chi/c-api-test-update branch March 14, 2022 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants